A light-weight, effective, Django based framework to create various business applications, resource planing and management systems.
Offers a ready made platform where you can start to create data entry pages and attach various reports to them.
- A Reporting Engine that can generate grouped reports and/or time series and/or crosstab from any model in your apps.
- Charting capabilities to represent the data in the reports.
- Widget system to create dashboards and display bits of the reports results and/or its charts on any page you want.
- Customizable and easily extensible.
- Django Jazzy Tabler admin theme integration ready to use.
- Python 3.10+, Django 5.2 / 6.1
$ pip install django-erp-framework OR $ pip install -e git+https://github.com/RamezIssac/django-erp-framework.git#egg=django-erp-framework@develop
Check out the getting started on Read The Docs.
You can checkout a demo application here.
Code is available on Github.
Available on Read The Docs
Please Proceed to the tutorial Create a sales application Part 1
The reporting engine of this framework is released as a separate package django-slick-reporting.
To run the test suite, first, create and activate a virtual environment. Then clone the repo, install the test requirements and run the tests:
# 1. Clone and install requirements $ git clone [email protected]:RamezIssac/django-erp-framework.git $ cd tests $ pip install -e .. $ pip install -r requirements.txt # 2. Set the test database connection details in the environment $ export DATABASE_NAME=<database name> $ export DATABASE_USER=<database user> $ export DATABASE_PASSWORD=<database password if any> # 3. Run the tests $ ./runtests.py # And for Coverage report $ coverage run --include=../* runtests.py [-k] $ coverage html
Each pull request runs mutation testing on the Python lines it changes and measures their coverage
(scripts/mutate_changed.py, Mutation workflow). It posts the mutant counts, the changed-lines
coverage, up to 40 surviving mutants and the changed lines no test runs to the job summary and a PR
comment. It is a report: survivors and uncovered lines do not fail the PR. To run the same check
locally from the repo root:
$ pip install "mutmut[patch]==2.5.1" $ python scripts/mutate_changed.py origin/develop # BASE: the branch the PR targets $ mutmut results # ids of the surviving mutants $ mutmut show <id> # the diff of one mutant
The report prints at the end and stays in comment.md.
Kill a survivor with a test that asserts the mutated value. When the mutant cannot change behaviour
(an equivalent mutant), mark the line with # pragma: no mutate and a short reason:
closest = get_close_matches(word, choices, n=1) # pragma: no mutate: only closest[0] is read
For more information on contributing, we honor Django's guidelines.
