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
Metadata
Release files for autodealer-core 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autodealer_core-0.1.8.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autodealer_core-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / autodealer_core-0.1.8.tar.gz
| Download URL | autodealer_core-0.1.8.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bf47a494a92f63a173fc397bfcc6a6b5cb0ada74d0194a89a079ed22ac2a7f5
|
|
BLAKE2b-256 checksum How to use checksums |
fdd34c1d3980f63a8c562294cf4260a7b1cd5dd3469aeb81079ceee9eaf4db52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / autodealer_core-0.1.8-py3-none-any.whl
| Download URL | autodealer_core-0.1.8-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1df4ffa1640f1d546e66df07c24af13f7a46ea0576876fd6bc10aa20ef45a58d
|
|
BLAKE2b-256 checksum How to use checksums |
fa300ad1c7c158277f668e0ae266dd06ca89d44206d1e6c81028a5325c73cb8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|