providers_config#

Attributes#

Classes#

Module Contents#

type providers_config.ProviderName = Annotated[str, Field(description='The name of the provider. This should be a valid identifier.')]#
class providers_config.GraphProperties#

Bases: pydantic.BaseModel

root_path: str#
x_path: str#
y_path: str#
class providers_config.ProcessConfig#

Bases: pydantic.BaseModel

description: str | None = None#
version: str | None = None#
result_storage: Literal['geoserver', 'remote']#
exclude: bool = False#
result_path: str | None#
graph_properties: GraphProperties | None#
anonymous_access: bool#
deterministic: bool#
validate_result_path_for_geoserver()#

Ensure result-path is set if result-storage is ‘geoserver’.

class providers_config.Authentication#

Bases: pydantic.BaseModel

type: Literal['BasicAuth']#
user: str#
password: pydantic.SecretStr#
class providers_config.ProviderConfig#

Bases: pydantic.BaseModel

name: str#
server_url: pydantic.HttpUrl#
timeout: int#
authentication: Authentication | None = None#
processes: dict[ProviderName, ProcessConfig]#
ensure_trailing_slash(value: str) pydantic.HttpUrl#

Ensure server_url has a trailing slash.

type providers_config.ModelServers = Annotated[dict[str, ProviderConfig], Field(description='A dictionary of model servers with their names as keys and ModelServer objects as values.')]#
providers_config.model_servers_adapter: pydantic.TypeAdapter[ModelServers]#