Shortcuts

ClusterConfig

class geodesic.config.ClusterConfig(cfg)[source]

Bases: object

ClusterConfig points the geodesic API at a configured Geodesic cluster.

Parameters

cfg (dict) – The configuration dictionary containing server information.

to_dict()[source]

Converts this cluster config into a JSON exportable dictionary as would be listed in the “clusters” field of the config object.

service_host(service)[source]

Given a service (e.g. tesseract, spacetime, etc) returns the host configured for that service

Parameters

service (str) – the service we want the host for (example: ‘spacetime’)

Returns

the host for that service

send_headers(url)[source]

Given a url determine whether to send auth headers. It returns true if the url contains the configured host, or a host in the overrides.

Docs

Developer documentation for Seer AI APIs

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources