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

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.5.tar.gz (677.7 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.5-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for streetmanager-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6a087cf0e88c5a0acac4c65847caacf7a35fda5138d9a3210e7113cf167b60d1
MD5 4ca1549adb44ea52f61a635056429629
BLAKE2b-256 5bb833a6d6f66738662ac15e302634babd00d79448460d09df99e3e8ef90f74d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streetmanager-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 283411f804feacdb6f8fe09f2f45bb726e32a6a2610b877663b301390dab761c
MD5 172ccf7f56ff2cf67a34ed9ece9cc7a6
BLAKE2b-256 89140201bac71156531b70443e013fc217d95ee67f61d16b0ac710e4f2175039

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