geodetic_engine.georepository¶
Client for the Georepository geodetic registry API.
Implemented from the Georepository OpenAPI document so that it works against any instance, not one particular deployment.
Example
>>> from geodetic_engine.georepository import (
... GeorepositoryClient,
... GeorepositoryConfig,
... )
>>> config = GeorepositoryConfig(
... api_url="https://georepository.example.com",
... client_id="...",
... client_secret="...",
... )
>>> with GeorepositoryClient(config) as client:
... for datum in client.iter_collection("Datum", authorities={"Example"}):
... print(datum["Code"], datum["Name"])
Classes¶
Reads objects from a Georepository instance. |
|
How to reach and authenticate against a Georepository instance. |
|
Fetches and caches an OAuth2 access token. |
Constants and type aliases¶
int([x]) -> integer int(x, base=10) -> integer |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
Exceptions¶
The API returned an unusable response. |
|
An OAuth2 token could not be obtained or refreshed. |
|
The Georepository connection settings are missing or inconsistent. |
|
Base class for Georepository access failures. |
|
Paging did not return every advertised result. |