Skip to main content

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.

PyPI Python License: MPL-2.0

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 PriceDecision snapshot 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

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.

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entirius-django-pricefighter 1.1.1
File Size Uploaded Provenance Actions
entirius_django_pricefighter-1.1.1.tar.gz 190.3 kB Without provenance Details for entirius_django_pricefighter-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-pricefighter 1.1.1
File Interpreter ABI Platform Actions
entirius_django_pricefighter-1.1.1-py3-none-any.whl Python 3 none any Details for entirius_django_pricefighter-1.1.1-py3-none-any.whl

Total release size: 253.5 kB

Release files / entirius_django_pricefighter-1.1.1.tar.gz

Download URL entirius_django_pricefighter-1.1.1.tar.gz
Size 190.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0fb15ffcdfcfbfa15697d9a1d7fca3d0b0abd43b12696269707ba4dd88501ca1
BLAKE2b-256 checksum
How to use checksums
28ec30b63bd855bb5ee5bc16514ccbb147cb132e240c94be82525107d6c048b7
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.1-py3-none-any.whl

Download URL entirius_django_pricefighter-1.1.1-py3-none-any.whl
Size 63.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ced0ea7bc0164abfad19d1d0bf7354991a38e9334ffca00716049dad716f87a8
BLAKE2b-256 checksum
How to use checksums
627f98f722cbe97a7862a70015c6ac56ca8925722bb09b4d26e836350e6d924b
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.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page