Skip to main content

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

autodealer_core-0.1.5.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

autodealer_core-0.1.5-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file autodealer_core-0.1.5.tar.gz.

File metadata

  • Download URL: autodealer_core-0.1.5.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for autodealer_core-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f0d7be7f954867758f2d27c85ac74f96ffbc5c0775f5cb3255b4568b2b94f7c2
MD5 b0f2dd107c5697018b311854c4e20c67
BLAKE2b-256 1d7b951db8596681006ee562fb2e8a9dd673317133f1f37ee3f255f880920ca7

See more details on using hashes here.

File details

Details for the file autodealer_core-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for autodealer_core-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eb42893105860e75d65be867e5f50aacc19e76476c18f04b9c319eabc40cb928
MD5 0b4dac711d6f199947c20effb3d0c756
BLAKE2b-256 64795d7d315992b67b67aed1eaaa436f80b7c2b29b0de325b8cba6a89abf0abb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page