Client#

GeoNeMoClient composes the area clients on one authenticated transport.

class geonemo.client.GeoNeMoClient(
base_url=None,
*,
transport=None,
project_id=None,
token=None,
timeout=10.0,
client=None,
headers=None,
)#

One transport and credential set shared across the toolkit’s API area clients.

property base_url#

The normalized service base URL, without credentials.

close()#

Close the transport if this client created it; a shared transport stays open.

discover()#

Fetch the service discovery document (GET /v1/discovery).

Returns:

The advertised service endpoints and capabilities.

Raises:

ServicesClientError – On transport or HTTP failure, or an invalid response.

discover_console()#

Fetch the console discovery document (GET /v1/console/discovery).

Returns:

The endpoints and capabilities advertised to the console.

Raises:

ServicesClientError – On transport or HTTP failure, or an invalid response.

property project_id#

The project identifier sent with every request.

property transport#

The shared HttpTransport.