Skip to main content

A Python client library for the Street Manager API

Reason this release was yanked:

fails

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.1.tar.gz (362.3 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.1-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for streetmanager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 727d8fee5c13c72cf924e087dfc36ade823fe4d42a576015cdaf9830aed0e457
MD5 fa064526454fad3d49ae5aba89d4c58d
BLAKE2b-256 f01cd622844ab616b57d328068364a3d341ca85c91c2065192bac9216af66714

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streetmanager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17b613d5943c416147ca521f6430f455c979098b321456bd85dd4822d3223e88
MD5 7105ffaaf0a671c66f5b8161aa743188
BLAKE2b-256 765db753916aa58e3802abefa7e0e5dc34b6107ea637a961a218193ec31b2109

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