Metadata-Version: 2.4
Name: stayease-accomm-utils
Version: 0.1.0
Summary: Utility library for room booking: date validation, availability checking and pricing for StayEase.
Project-URL: Homepage, https://example.com/stayease-accomm-utils
Author-email: Akhil <x24274429@student.ncirl.ie>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# stayease-accomm-utils

Utilities for the StayEase booking flow: validate date ranges, check room availability, and calculate prices before persisting bookings or calling AWS services.

## Installation

```bash
pip install stayease-accomm-utils
```

## Usage

```python
from accomm_utils import (
    DateRangeValidator,
    PriceCalculator,
    AvailabilityChecker,
    InvalidDateRangeError,
    RoomNotAvailableError,
)

validator = DateRangeValidator()
date_range = validator.validate(check_in, check_out)

pricing = PriceCalculator()
total = pricing.calculate_total(150, date_range)

availability = AvailabilityChecker()
availability.ensure_available(date_range, existing_bookings)
```

Integrate these helpers into Django or any web framework to keep booking views lean and reusable.