supplycm
A pure-Python library of 397 supply chain management algorithms with zero external dependencies. All algorithms are public-domain / patent-free implementations suitable for educational and commercial use.
Quick Start
pip install supplycm
from supplycm.inventory import economic_order_quantity
# Compute optimal order quantity
q = economic_order_quantity(demand=10000, ordering_cost=100, holding_cost=5)
print(f'Order {q:.0f} units each cycle')
Installation
From PyPI
pip install supplycm
From source
git clone https://github.com/atqatq/supplycm.git
cd supplycm
pip install .
Note: Python 3.6 or later is required. Check your version with python --version.
Categories
| Module | Count | Description |
|---|---|---|
supplycm.forecasting |
50 | Time series forecasting (moving averages, exponential smoothing, Croston, AR/MA) |
supplycm.inventory |
60 | EOQ/EPQ, newsvendor, lot-sizing, ABC/XYZ analysis |
supplycm.statistics |
40 | MAPE, RMSE, MASE, hypothesis tests, descriptive stats |
supplycm.routing |
30 | TSP, VRP, assignment problem, transportation simplex |
supplycm.network |
30 | Shortest paths, MST, max-flow, graph algorithms |
supplycm.scheduling |
40 | Johnson's rule, NEH, dispatching rules, CPM/PERT |
supplycm.mrp |
30 | BOM explosion, MRP, MPS, kanban, DBR |
supplycm.optimization |
30 | Simplex, GA, SA, PSO, ACO, knapsack, DP |
supplycm.supplier |
30 | AHP, TOPSIS, DEA, PROMETHEE, ELECTRE |
supplycm.warehouse |
10 | Slotting, picking, cross-dock, putaway |
supplycm.demand |
9 | Aggregation, seasonality, sensing, cannibalization |
supplycm.risk |
1 | Supply chain resilience index |
supplycm.quality |
7 | Control charts, Cp/Cpk, DPMO, sigma level |
supplycm.lean |
4 | Takt time, OEE, Little's Law, cycle efficiency |
supplycm.sop |
3 | Sales and Operations Planning, chase/level strategies |
supplycm.sustainability |
3 | Carbon footprint, reverse logistics, energy |
supplycm.contracts |
3 | Revenue sharing, buyback, quantity flexibility |
supplycm.simulation |
2 | Monte Carlo inventory and risk simulation |
supplycm.cost |
2 | Landed cost, total procurement cost |
supplycm.network_design |
5 | Center of gravity, facility location, break-even |
supplycm.iot |
4 | Anomaly detection, sensor smoothing, real-time monitoring |
supplycm.blockchain |
4 | Hash chain, provenance tracking, smart contracts |
| Total | 397 |
Python Version Compatibility
| Python | Status |
|---|---|
| 3.6 | Supported |
| 3.7 | Supported |
| 3.8 | Tested |
| 3.9 | Tested |
| 3.10 | Tested |
| 3.11 | Tested |
| 3.12 | Tested |
| 3.13 | Tested |
Running Tests
# Run all unit tests
python tests/run_tests.py
# Run doctests
python tests/run_doctests.py
Design Principles
- Pure Python - no NumPy, pandas, or any third-party dependency. Only the standard library.
- Self-contained - each algorithm lives in its own module and can be imported independently.
- Documented - every function has a docstring with usage examples.
- Tested - comprehensive test suite using Python's built-in unittest framework.
- Consistent - all modules follow the same style and structure.
Community
- Discussions - Ask questions, share ideas, show your projects
- Issues - Report bugs or request features
- Contributing Guide - How to contribute code, documentation, or algorithms
Learning the Package
Tutorials, learning paths, and interactive notebooks are available in the companion repository: atqatq/supplycm-learning
License
MIT - see LICENSE.
Metadata
Release files for supplycm 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| supplycm-1.2.1.tar.gz | 131.5 kB | Without provenance | Details for supplycm-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supplycm-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for supplycm-1.2.1-py3-none-any.whl |
Total release size: 387.4 kB
Release files / supplycm-1.2.1.tar.gz
| Download URL | supplycm-1.2.1.tar.gz |
|---|---|
| Size | 131.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c814c8e265aeea98743da632065b5572f25831f6702d3938f6231cd07cf64e42
|
|
BLAKE2b-256 checksum How to use checksums |
59e77c75cee7c18d362e14c1c0e8b0809f3e04e09199c8789666c095266dbbe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / supplycm-1.2.1-py3-none-any.whl
| Download URL | supplycm-1.2.1-py3-none-any.whl |
|---|---|
| Size | 255.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2484081354e7169f9c9a4c57238011dc6047605447d625b32acb234539d39c45
|
|
BLAKE2b-256 checksum How to use checksums |
756efec456949c4915275931bee782cdf5d5285bfe77a22c199da9616171fa2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for supplycm 1.2.1
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.