Skip to main content

📦 backorder (alpha)

A lightweight, zero-dependency Python utility for e-commerce inventory management, supply chain calculations, and backorder mitigation.

Features include Economic Order Quantity (EOQ), Safety Stock calculation, and Reorder Point (ROP) modeling.

⚡ Installation

pip install backorder

🚀 Quickstart

import backorder

# 1. Economic Order Quantity (EOQ)
# Balances the cost of ordering against the cost of holding inventory.
optimal_qty = backorder.economic_order_quantity(
    annual_demand=10000, 
    order_cost=50.0, 
    holding_cost_per_unit=2.5
)
print(f"Optimal Order Quantity (EOQ): {optimal_qty} units")

# 2. Reorder Point & Safety Stock
# Calculates exactly when to reorder to prevent backorders.
model = backorder.InventoryModel(
    average_daily_demand=30,
    max_daily_demand=45,
    average_lead_time_days=7,
    max_lead_time_days=10
)

print(f"Safety Stock Needed: {model.safety_stock} units")
print(f"Reorder Point (ROP): {model.reorder_point} units")

⚠️ Disclaimer

This package provides mathematical models for supply chain estimates. It does not replace comprehensive ERP systems. Real-world supply chains are subject to unpredictable disruptions.

Metadata

Release files for backorder 0.1.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 backorder 0.1.0
File Size Uploaded
backorder-0.1.0.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backorder 0.1.0
File Interpreter ABI Platform
backorder-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / backorder-0.1.0.tar.gz

Download URL backorder-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
06aee261b1d6a0f346cefca2f689c5db0eb05011621abc9c1723e83e6e76687b
BLAKE2b-256 checksum
How to use checksums
f28b8c95c7c54e8b8e5d58a73e31e352a65ebce868e7b4d3672b1d60031a1ea4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / backorder-0.1.0-py3-none-any.whl

Download URL backorder-0.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7ca4313fb70aad7aba2b007ac39258b05ae7dbe932dd0886fc99421d3675fea
BLAKE2b-256 checksum
How to use checksums
506369dc70d48d9ca957cbf3b4b727b5a6b5751b259bd267e383ac5193a4f9ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

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