entirius-django-pricefighter
A Django module for competitive pricing in Entirius, the open-source modular ecommerce platform. It compares each product's price with competitor observations per market, recommends a new price under a pricing strategy, and applies approved decisions through the price module with a full audit snapshot.
What it does
- Mirrors catalog products per sales channel and keeps the mirror in sync (signals and a daily full sync).
- Resolves a pricing strategy per product and market (
hold,compete,raise), most specific rule first. - Computes a decision view: gap to the competitor reference price, a recommendation and a suggested price, within floor, ceiling and step limits.
- Applies an approved decision through the price module and logs a
PriceDecisionsnapshot of every input. - Exposes an admin API (JWT, Pydantic schemas, OpenAPI): channels, decisions, bounds, history, apply, rules.
Installation
uv add entirius-django-pricefighter
pip install entirius-django-pricefighter
Optional extras: entirius-django-pricefighter[pim] (product sync from the catalog module; without it the sync
does nothing).
INSTALLED_APPS = [
...
"django_utils",
"django_regional",
"django_pricemanager",
"django_atlas",
"django_pricefighter",
]
# urls.py
urlpatterns = [
path("", include("django_pricefighter.urls")),
]
Optional settings: PRICEFIGHTER_REF_ESTIMATOR, PRICEFIGHTER_STALENESS_DAYS,
PRICEFIGHTER_DECISION_RETENTION_DAYS; reference with defaults in
https://github.com/entirius/entirius-django-pricefighter/blob/develop/AGENTS.md (section Settings).
Quick start
from django_pricefighter.services.decision_view_service import build_decision_rows
# decision rows for every product with a fresh competitor observation, largest gap first
rows, total = build_decision_rows(sort="-gap_baseline", limit=50)
python manage.py sync_pricefighter_channels
python manage.py pricefighter_full_sync
Requirements
- Python 3.11 or newer, Django 5.0 or newer, PostgreSQL, a Celery worker for the sync and retention tasks.
- Entirius packages pulled in:
entirius-django-utils,entirius-django-regional,entirius-django-pricemanager,entirius-django-atlas.
Documentation
- Data model: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/data-model.md
- Sync from the catalog: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/sync.md
- Strategy resolution: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/strategy-resolution.md
- Decision engine: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/decision-engine.md
- Apply flow: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/apply-flow.md
- Admin API: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/api.md
- Gotchas: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/gotchas.md
- Testing: https://github.com/entirius/entirius-django-pricefighter/blob/develop/docs/testing.md
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-django-pricefighter/blob/develop/CHANGELOG.md
Part of Entirius
This module runs inside the Entirius backend service (Volkanos); it reads competitor observations from the external product data engine and writes prices through the price module.
- 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-atlas, https://github.com/entirius/entirius-django-pricemanager, https://github.com/entirius/entirius-django-pim
Development
make install # sync dependencies (uv, incl. extras)
make check # lint + format check (ruff)
make test # test suite (pytest + pytest-django, needs PostgreSQL via DATABASE_URL)
Development and agent instructions: https://github.com/entirius/entirius-django-pricefighter/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-pricefighter/blob/develop/LICENSE.
Metadata
Release files for entirius-django-pricefighter 1.1.2
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_pricefighter-1.1.2.tar.gz | 190.4 kB | Without provenance | Details for entirius_django_pricefighter-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_pricefighter-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_pricefighter-1.1.2-py3-none-any.whl |
Total release size: 253.6 kB
Release files / entirius_django_pricefighter-1.1.2.tar.gz
| Download URL | entirius_django_pricefighter-1.1.2.tar.gz |
|---|---|
| Size | 190.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6b2f11f706838a3b1ec879ee4fb8d8af03d38537af8f7f2050484d4b58789a1
|
|
BLAKE2b-256 checksum How to use checksums |
7fc22b0571407b7087cc64b11df02fdea5cca3eb65df0d835b887a3dabb61be6
|
| 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_pricefighter-1.1.2-py3-none-any.whl
| Download URL | entirius_django_pricefighter-1.1.2-py3-none-any.whl |
|---|---|
| Size | 63.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fbbe2bdcf25864ee716c84ee0081a09af0a13cbd4e222fc03902811dfc51985
|
|
BLAKE2b-256 checksum How to use checksums |
b671bc79ccc94abae83af8d8a888909709078bef7cb2951e5e77e421007abb5f
|
| 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-pricefighter 1.1.2
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.