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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for streetmanager-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b3ef665ec1d2e67adae01392a27b87183f450d2906b60e99b08c567ba9c604ed
MD5 52325366e09e009ce4119e3d22e50874
BLAKE2b-256 3c1ca83f1fa4ca1d2e57ba723218d47f4bcb34d5c5261a9ae8c1f9d64e46da22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streetmanager-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3525584d02870ef2ef078018c51bec76ec8c47000bcf68614686bbb510da9fc
MD5 a1521bdbc71e3adc5badce4e92e531ac
BLAKE2b-256 8752ba2b1cc3f2c00132a3ecc93413eaf064e315e24df8c1b5fc5226e94cc003

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