Skip to main content

A Python client library for the Street Manager API

Project description

Street Manager Python Client

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

Installation

uv add streetmanager

Usage

# 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

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

streetmanager-0.1.2.tar.gz (633.6 kB view details)

Uploaded Source

Built Distribution

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

streetmanager-0.1.2-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file streetmanager-0.1.2.tar.gz.

File metadata

  • Download URL: streetmanager-0.1.2.tar.gz
  • Upload date:
  • Size: 633.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for streetmanager-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80af44550451e3ba9dd1e094d9a317763bdb46174fe6fad8d0922236e925892a
MD5 012de7eae61142825c9caf3877aac61c
BLAKE2b-256 a4af681c48be3361aee508d40154c702dc869f62d6efd29177a51e95651e3764

See more details on using hashes here.

File details

Details for the file streetmanager-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streetmanager-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 140c498852ea6b64dbcd76e0dded3e478b0cbb9b5c768c99b5849cba070508a3
MD5 86adad88641fa3fa4200cacc641e85da
BLAKE2b-256 29d7ddd7e4f7ad8f8c43bfd5175fd76665aaa5532e20af720c1b4ac51b1eefef

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