SmartParking domain library: parking lot management, pricing calculation, and slot allocation utilities
Project description
smart-parking-nci
SmartParking domain library — parking lot management, pricing calculation, and slot allocation utilities for cloud-native parking applications.
Features
- ParkingManager — CRUD validation for parking lots and reservations
- PricingCalculator — Hourly/daily rate calculations with peak/off-peak pricing
- SlotAllocator — Optimal slot assignment and availability checks
Installation
pip install smart-parking-nci
Usage
from parking_manager import ParkingManager, PricingCalculator, SlotAllocator
mgr = ParkingManager()
lot = mgr.create_lot("City Centre Garage", "12 Main St, Dublin", total_spots=100, hourly_rate=2.50)
calc = PricingCalculator(base_rate=2.50, peak_multiplier=1.5)
cost = calc.calculate_cost(start_hour=17, duration_hours=3) # peak hours
allocator = SlotAllocator(total=100)
slot = allocator.allocate(occupied_slots=[1, 2, 5, 10]) # returns next free slot
License
MIT
Project details
Release history Release notifications | RSS feed
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 smart_parking_nci-1.0.0.tar.gz.
File metadata
- Download URL: smart_parking_nci-1.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619a564eb58579f89f3c6c52ca979a536c1f917946041af0c27cdbc29b6d1cbd
|
|
| MD5 |
de9275e0c680f26e8b1e378e14ab0617
|
|
| BLAKE2b-256 |
dec0ef0c352e9d84e1abb7be9d3a07ec264ef1352f2e1987507101c6fdf9c831
|
File details
Details for the file smart_parking_nci-1.0.0-py3-none-any.whl.
File metadata
- Download URL: smart_parking_nci-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32787811d8329f0aa1faed6dda1e78fef2c72a5538594e64370c423eb3ae9eba
|
|
| MD5 |
c54f92093ecf68d1a796a7270afc5aa9
|
|
| BLAKE2b-256 |
4f3db51f2710fed5b449677e8606d4482fe71419751e80d3be29a990d6da2fb2
|