Skip to main content

Rule-based price adjustments per channel, customer group, country, and currency

Project description

Django PriceTuner

Rule-based price adjustments for the Volkanos ecommerce platform. Rules scoped to channels, product categories, and products modify prices per customer group, country, and currency — companion module to entirius-django-pim and entirius-django-accounts.

Installation

pip install entirius-django-pricetuner

Add the app to your project:

INSTALLED_APPS = [
    ...
    "django_pricetuner",
]

Requires django_accounts, django_pim, and django_regional in INSTALLED_APPS (all installed automatically as dependencies).

Usage

Configure channels, rules, conditions, and scopes in the Django admin. Query adjusted prices via django_pricetuner.output.PriceTuner. Test rules from the CLI:

python manage.py test-rule --channel_idx <idx> --sku <sku> [--currency PLN] [--country PL]

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django)

Architecture and settings reference: AGENTS.md.

License

Mozilla Public License 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entirius_django_pricetuner-2.0.0.tar.gz (140.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entirius_django_pricetuner-2.0.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file entirius_django_pricetuner-2.0.0.tar.gz.

File metadata

  • Download URL: entirius_django_pricetuner-2.0.0.tar.gz
  • Upload date:
  • Size: 140.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for entirius_django_pricetuner-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fadbf714d6b8a61a8cdfdd0271f6947ddf2c4f60edcb93275d802fc4072ea29d
MD5 3a532ed308cafa2699ce2175be2510e8
BLAKE2b-256 e5116f3ec0aad15dd52e8630906f8605889f052cb1d59139f67bf153844c5baa

See more details on using hashes here.

File details

Details for the file entirius_django_pricetuner-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: entirius_django_pricetuner-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for entirius_django_pricetuner-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8b95b8f1ad55490d4cacd49870598dbd4dd0c2d6037d7b095df8081abc071c2
MD5 886d86623e2cbd2c7016b7056a7c380a
BLAKE2b-256 15f0780f452594d3a7c1734f7d7ef3770e4b3129d901ea0f1d9bd4267ac64b79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page