entirius-django-utils
Shared Django building blocks for the modules of Entirius, the open-source modular ecommerce platform. Abstract base models, DRF API helpers, admin base classes, text tools and an AI toolbox client live here, so every module builds on the same foundations.
What it does
- Abstract base models and manager helpers shared by every Entirius module.
- DRF helpers: request parsing, filtering, pagination and the structured v2 error handling.
- Admin base classes, text, slug and translation helpers.
- A base for worker management commands with locking.
- A typed client for the AI toolbox (completions, model catalogue, error mapping to DRF responses).
Installation
uv add entirius-django-utils
pip install entirius-django-utils
Optional extra: entirius-django-utils[unfold] (django-unfold admin theme).
INSTALLED_APPS = [
...
"django_regional",
"django_utils",
]
The toolbox client needs AI_TOOLBOX_BASE_URL, AI_TOOLBOX_API_KEY and AI_TOOLBOX_CHANNEL; the settings
reference is https://github.com/entirius/entirius-django-utils/blob/develop/docs/toolbox-client.md.
Quick start
from django_utils.toolbox import CompletionRequest, Message, ToolboxClient
# settings: AI_TOOLBOX_BASE_URL = "https://toolbox.example.com"
with ToolboxClient() as client:
response = client.complete(
CompletionRequest(
model="fake-chat",
messages=[Message(role="user", content="Say hi as JSON")],
json_schema={"type": "object"},
)
)
Requirements
- Python 3.11 or newer, Django 4.2 or newer.
- Entirius packages pulled in:
entirius-django-regional,entirius-py-idx-normalizator,entirius-py-process-logger.
Documentation
- Module docs: https://github.com/entirius/entirius-django-utils/tree/develop/docs
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-django-utils/blob/develop/CHANGELOG.md
Part of Entirius
Every module of the Entirius backend service (Volkanos) depends on this package.
- Backend service: https://github.com/entirius/entirius-service-volkanos
- Docker harness: https://github.com/entirius/entirius-zeno
- Sibling modules: https://github.com/entirius/entirius-django-regional, https://github.com/entirius/entirius-django-utils-translator
Development
make install # sync dependencies (uv)
make check # lint + format check (ruff)
make test # test suite (pytest + pytest-django)
Development and agent instructions: https://github.com/entirius/entirius-django-utils/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-utils/blob/develop/LICENSE.
Metadata
Release files for entirius-django-utils 2.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| entirius_django_utils-2.4.4.tar.gz | 96.9 kB | Without provenance | Details for entirius_django_utils-2.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_utils-2.4.4-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_utils-2.4.4-py3-none-any.whl |
Total release size: 141.0 kB
Release files / entirius_django_utils-2.4.4.tar.gz
| Download URL | entirius_django_utils-2.4.4.tar.gz |
|---|---|
| Size | 96.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c9f17929403d1ce170cb32267f238914b6deda79c64e2939e284b80517adca5
|
|
BLAKE2b-256 checksum How to use checksums |
b0bcff52d76fa73455acff1db1ae9dc7bd50ffa934fbbc148bd7b17f0f7d5b31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / entirius_django_utils-2.4.4-py3-none-any.whl
| Download URL | entirius_django_utils-2.4.4-py3-none-any.whl |
|---|---|
| Size | 44.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6eb77e16fae32225cb8adeec5e23754a9697e95851deeae4959f67add616613d
|
|
BLAKE2b-256 checksum How to use checksums |
b27221295618d501a5a08ad06923e6b0435e29e363b254a037ff9b929d3178eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for entirius-django-utils 2.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.