Metadata-Version: 2.4
Name: metro-route-sdk
Version: 0.1.0
Summary: Official Python SDK for the Metro Route Premium API.
Author-email: Siddharth <app.details@zohomail.in>
Project-URL: Homepage, https://github.com/sidd-harth830/Delhi-Metro-API
Project-URL: Bug Tracker, https://github.com/sidd-harth830/Delhi-Metro-API/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.24.0

# Metro Route SDK (Python)

The official Python client library for the Delhi & Noida Metro Premium API.

## Installation

```bash
pip install metro-route-sdk
```

## Usage

This SDK provides both synchronous and asynchronous clients.

### Synchronous Client

```python
from metro_route import MetroRouteClient

# Initialize the client
client = MetroRouteClient()

# Get all operating lines
lines = client.get_lines()
print(lines)

# Plan a Noida Metro journey
journey = client.plan_nmrc_journey(from_station_id="1", to_station_id="16")
print(journey)
```

### Asynchronous Client

```python
import asyncio
from metro_route import AsyncMetroRouteClient

async def main():
    # Use async context manager for proper connection pooling
    async with AsyncMetroRouteClient() as client:
        # Get Noida Metro stations
        stations = await client.get_nmrc_stations()
        print(stations)

        # Plan a DMRC journey
        journey = await client.plan_journey(from_station="RG", to_station="DW21")
        print(journey)

asyncio.run(main())
```

## Available Methods
- `get_lines()`
- `get_stations_by_line(line_code: str)`
- `search_stations(name: str)`
- `get_station_details(station_code: str)`
- `plan_journey(from_station: str, to_station: str)`
- `get_notifications()`
- `get_nmrc_stations()`
- `plan_nmrc_journey(from_station_id: str, to_station_id: str)`
