Skip to main content

flexcommerce-inventory

Concurrency-safe stock for any product model: atomic reservations that expire, sales, returns, adjustments, an audited movement log, CSV import and back-in-stock alerts.

Part of FlexCommerce — a complete, modular e-commerce and marketplace backend for Django + DRF, built for Nigeria and Africa. Every app is optional.

Features

  • Reservations via a single conditional UPDATE — the last unit can never be sold twice
  • Reservations expire automatically (unpaid orders) and convert to sales on payment
  • Low / out-of-stock / restocked signals that fire when the level crosses the threshold
  • "Notify me when available" alerts for customers and guests
  • import_inventory stock.csv and reconcile_inventory commands

Install

pip install flexcommerce-inventory
INSTALLED_APPS = [..., "rest_framework", "flexcommerce_core", "flexcommerce_inventory"]
urlpatterns = [path("api/", include("flexcommerce_core.urls"))]
python manage.py migrate

Example: POST /api/inventory/{id}/restock/

Documentation

Requires Python 3.10+, Django 4.2+, Django REST framework 3.14+. MIT licensed.

Metadata

Release files for flexcommerce-inventory 1.0.0

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

Source distribution (sdist)

Source distribution for flexcommerce-inventory 1.0.0
File Size Uploaded
flexcommerce_inventory-1.0.0.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flexcommerce-inventory 1.0.0
File Interpreter ABI Platform
flexcommerce_inventory-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.3 kB

Release files / flexcommerce_inventory-1.0.0.tar.gz

Download URL flexcommerce_inventory-1.0.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9707d32bf2872a46a59df204c46e57f42fc68f1a89e9b1ca8979f3e09583a540
BLAKE2b-256 checksum
How to use checksums
0d7f393107bb97cd6a3f7ceeda7ee5b530beab8acbf4a7e28f1eaf1ed7ba5fc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / flexcommerce_inventory-1.0.0-py3-none-any.whl

Download URL flexcommerce_inventory-1.0.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30eafaba6f32ab8df0fedd9ac70546efeb114f921a33b24f22a1cd5136ee3808
BLAKE2b-256 checksum
How to use checksums
bd332d81d5bfaa818ac2a21aae2e77b3d8c8ec40e721cb41b281825032910d36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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