Core business logic for car dealership: order splitting, preorder calculation, sales reporting and top sales
Project description
autodealer-core
Core business logic for a car dealership management system.
Features
calculate_sale_items– split order into in‑stock and preorder parts.total_amount– compute total price.aggregate_report– group sales by car model and sort by revenue.top_sales– get top N cars by quantity sold.
Installation
pip install autodealer-core
Usage
from autodealer_core import calculate_sale_items, total_amount
cart_totals = {1: 5, 2: 2} stock_map = {1: (3, 100), 2: (10, 200)} items = calculate_sale_items(cart_totals, stock_map) total = total_amount(items) print(total) # 900
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 autodealer_core-0.1.0.tar.gz.
File metadata
- Download URL: autodealer_core-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc3b66389902f2490b0687d5f56d58d454e4cce41de87056dbe07aa31cf8c2e0
|
|
| MD5 |
bf46a45c2e24a5608b54ad86e73d690a
|
|
| BLAKE2b-256 |
ab8dbfdf867407fee83445e46798cc4809312f1ed8d75488598862912f5519d3
|
File details
Details for the file autodealer_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autodealer_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54931a6a4f22ceed0c42cd6213b1ad667e24d67b895c51ceba0a702cb15174de
|
|
| MD5 |
b105ef15568843cd9a884b94e60588ba
|
|
| BLAKE2b-256 |
e64d41b72cef05fd8f0d592f9df1925ebebda63ee7e4e17ac8ec42dd5f2de553
|