Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_parking_nci-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

smart_parking_nci-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for smart_parking_nci-1.0.0.tar.gz
Algorithm Hash digest
SHA256 619a564eb58579f89f3c6c52ca979a536c1f917946041af0c27cdbc29b6d1cbd
MD5 de9275e0c680f26e8b1e378e14ab0617
BLAKE2b-256 dec0ef0c352e9d84e1abb7be9d3a07ec264ef1352f2e1987507101c6fdf9c831

See more details on using hashes here.

File details

Details for the file smart_parking_nci-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_parking_nci-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32787811d8329f0aa1faed6dda1e78fef2c72a5538594e64370c423eb3ae9eba
MD5 c54f92093ecf68d1a796a7270afc5aa9
BLAKE2b-256 4f3db51f2710fed5b449677e8606d4482fe71419751e80d3be29a990d6da2fb2

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