Skip to main content

entirius-django-qms

A Django module for stock quantities in Entirius, the open-source modular ecommerce platform. It keeps stock per warehouse and SKU, imports it from CSV files, and passes every change on to the checkout and the product catalog.

PyPI Python License: MPL-2.0

What it does

  • Models warehouses, the sales channels they serve and the stock of each SKU in each warehouse.
  • Imports stock from CSV files with the warehouse_import_csv management command.
  • Exposes an admin REST API for warehouses and their stock, used by the CMS.
  • Sends a signal on every stock change; optional handlers update the checkout and the product catalog when those modules are installed.
  • Runs standalone: the checkout and catalog integrations are skipped when the modules are missing.

Installation

uv add entirius-django-qms
pip install entirius-django-qms
INSTALLED_APPS = [
    ...
    "django_utils",
    "django_qms",
]

# urls.py
urlpatterns = [
    path("", include("django_qms.urls")),
]

The Celery tasks and the legacy pipelines need BI_ENVIRONMENT and BI_BUSINESS_UNIT (read when their event definitions are imported). Optional settings (QMS_BULK_BATCH_SIZE, QMS_SUPPLIER_CODE_PREFIX) are listed with their defaults in https://github.com/entirius/entirius-django-qms/blob/develop/docs/configuration.md.

Quick start

from django_qms.services.warehouse_service import bulk_upsert_stock, get_warehouse

warehouse = get_warehouse("wh-main")
bulk_upsert_stock(warehouse, [{"sku": "SKU-1", "quantity": 12}])

The same from a CSV file: python manage.py warehouse_import_csv --warehouse-code wh-main --file stock.csv.

Requirements

  • Python 3.11 or newer, Django 5.0 or newer.
  • PostgreSQL.
  • Entirius packages pulled in: entirius-django-utils, entirius-py-bievents, entirius-py-idx-normalizator, entirius-py-process-logger.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos) and feeds stock to the checkout and the catalog.

Development

make install     # sync dependencies (uv)
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-qms/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-qms/blob/develop/LICENSE.

Metadata

Release files for entirius-django-qms 4.1.2

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-qms 4.1.2
File Size Uploaded Provenance Actions
entirius_django_qms-4.1.2.tar.gz 161.4 kB Without provenance Details for entirius_django_qms-4.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 236.6 kB

Release files / entirius_django_qms-4.1.2.tar.gz

Download URL entirius_django_qms-4.1.2.tar.gz
Size 161.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6d7a00f6126b27bace14d5952795500ebcc0d402cb85831f3195c64d3c71ccf
BLAKE2b-256 checksum
How to use checksums
1d239e62a4a2b7c17f5ab2cf6df129e9ca9412a4b216708bda7539cbf1a7a0f7
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_qms-4.1.2-py3-none-any.whl

Download URL entirius_django_qms-4.1.2-py3-none-any.whl
Size 75.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41b66b9e36279c560303c7d09d6646ca2b38652955df0d2e2752508325539dd8
BLAKE2b-256 checksum
How to use checksums
77e3b6e96f57a7e7bada7e1627c6ffaa16451a160d4788b143db2e388995a436
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-qms 4.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.

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