Metadata-Version: 2.1
Name: NEMO-reports
Version: 1.4.0
Summary: Install reports plugin for NEMO
Home-page: https://gitlab.com/nemo-community/atlantis-labs/nemo-reports
Author: Atlantis Labs LLC
Author-email: atlantis@atlantislabs.io
License: MIT
Keywords: NEMO
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: NEMO (>=4.3.0)
Requires-Dist: django (<4.0,>=3.2)
Requires-Dist: python-dateutil

# NEMO Reports

This plugin for NEMO adds a variety of reports.

# Installation

`pip install NEMO-reports`

# Add NEMO Reports

in `settings.py` add to `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    '...',
    'NEMO_reports', # This needs to be before NEMO_billing (if installed) and NEMO
    '...'
    'NEMO_billing', # Optional
    '...'
    'NEMO',
    '...'
]
```

# Usage
Simply navigate to the `Reports` page in the `Administration` menu.

## Options
The format for duration can be changed, by updating the default value `TIMEDELTA_FORMAT` in settings.py:

Fields can include seconds, minutes, hours, days, and weeks. Each field is optional.

    Some examples:
        '{D:02}d {H:02}h {M:02}m {S:02}s' --> '05d 08h 04m 02s' (default)
        '{W}w {D}d {H}:{M:02}:{S:02}'     --> '4w 5d 8:04:02'
        '{D:2}d {H:2}:{M:02}:{S:02}'      --> ' 5d  8:04:02'
        '{H}h {S}s'                       --> '72h 800s'

```python
# Default timedelta format
TIMEDELTA_FORMAT = "{D}d {H}h {M}m {S}s"
```

