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.

Download files

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

Source Distribution

backorder-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

backorder-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file backorder-0.1.0.tar.gz.

File metadata

  • Download URL: backorder-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for backorder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06aee261b1d6a0f346cefca2f689c5db0eb05011621abc9c1723e83e6e76687b
MD5 6367ce493f6d9389fc59e0ffeb506ff1
BLAKE2b-256 f28b8c95c7c54e8b8e5d58a73e31e352a65ebce868e7b4d3672b1d60031a1ea4

See more details on using hashes here.

File details

Details for the file backorder-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: backorder-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for backorder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ca4313fb70aad7aba2b007ac39258b05ae7dbe932dd0886fc99421d3675fea
MD5 75705718cbf56610691d3e09d9c02ff7
BLAKE2b-256 506369dc70d48d9ca957cbf3b4b727b5a6b5751b259bd267e383ac5193a4f9ab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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