A simple package that ensures stock level in inventory is always optimal
Project description
Inventory Optimizer
A Django library for optimizing inventory levels based on weekly sales patterns.
Features
- 7-day sales analysis
- Daily average usage calculation
- Reorder point recommendations
- Automated stock alerts
- Simple integration with Django models
Installation
pip install inventory-optimizer-package-23384069
Quick Start
from inventory_optimizer import InventoryOptimizer
# Initialize optimizer
optimizer = InventoryOptimizer(min_stock_threshold=10)
# Generate recommendations
recommendations = optimizer.generate_recommendations(
product_id=1,
product_model=Product,
inventory_model=Inventory,
notification_model=Notification
)
Requirements
- Python >= 3.6
- Django >= 3.2
Configuration
The optimizer uses:
- 7-day analysis period
- 3-day stock threshold for reorder points
- Minimum stock threshold (configurable)
API Reference
InventoryOptimizer(min_stock_threshold=10)
Main class for inventory optimization.
calculate_weekly_average(product_id, inventory_model, start_date=None, end_date=None)
Returns daily average sales based on 7-day history.
generate_recommendations(product_id, product_model, inventory_model, notification_model)
Returns dictionary with:
- current_stock
- daily_average_usage
- reorder_point
- recommended_order
- needs_reorder
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inventory_optimizer_package_23384069-1.1.4-py3-none-any.whl.
File metadata
- Download URL: inventory_optimizer_package_23384069-1.1.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3f5958f7a23e8f6775911f12f97bcb4f2e10727066464b017d123bb7bf5c69b
|
|
| MD5 |
5e9de66257fc6059705d3a1b9fa744ef
|
|
| BLAKE2b-256 |
eaff09feeea32416ba11cd37cf2a9b2b77a9e552af3f34b96405c28f19e8eacb
|