Metadata-Version: 2.4
Name: smart-parking-nci
Version: 1.0.0
Summary: SmartParking domain library: parking lot management, pricing calculation, and slot allocation utilities
Home-page: https://github.com/kokadivyasaipriyanka/CPP
Author: Divya Sai Priyanka Koka
Author-email: Kokadivyasaipriyanka2325@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# 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
```bash
pip install smart-parking-nci
```

## Usage
```python
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
