Metadata-Version: 2.4
Name: streetmanager
Version: 0.1.2
Summary: A Python client library for the Street Manager API
Author-email: Cogna Co <info@cogna.co>
Requires-Python: >=3.12
Requires-Dist: certifi>=2019.9.11
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: requests>=2.25.1
Requires-Dist: six>=1.10
Requires-Dist: urllib3>=1.25.3
Description-Content-Type: text/markdown

# Street Manager Python Client

A Python client library for the Street Manager API, providing access to work, geojson, and lookup endpoints.

## Installation

```bash
uv add streetmanager
```

## Usage

```python
# Import the client modules
from streetmanager.work import swagger_client as work_client
from streetmanager.geojson import swagger_client as geojson_client
from streetmanager.lookup import swagger_client as lookup_client

# Create API client instances
work_api = work_client.DefaultApi()
geojson_api = geojson_client.DefaultApi()
lookup_api = lookup_client.DefaultApi()

# Use the APIs
# Example: Get work details
work_response = work_api.get_work(work_id="123")

# Example: Get GeoJSON data
geojson_response = geojson_api.get_work_geojson(work_id="123")

# Example: Lookup street details
street_response = lookup_api.get_street(usrn="123456")
```

## Features

- Work API client for managing street works
- GeoJSON API client for accessing geographical data
- Lookup API client for street information

## Requirements

- Python 3.12 or higher
- Dependencies are automatically installed with the package

## License

<https://department-for-transport-streetmanager.github.io/street-manager-docs/api-documentation/V6/V6.0/json/geojson-swagger.json>
<https://department-for-transport-streetmanager.github.io/street-manager-docs/api-documentation/V6/V6.0/json/work-swagger.json>
<https://department-for-transport-streetmanager.github.io/street-manager-docs/api-documentation/V6/V6.0/json/lookup-swagger.json>

