registrar.route package

Submodules

registrar.route.json module

class registrar.route.json.JSONRoute(config: RouteConfig, href_field: str | None = None)[source]

Bases: Route[dict]

Route handler that handles raw JSON objects

get_source(source_cfgs: List[SourceConfig], item: dict) Source | None[source]

Determines the source of the given parsed item.

parse(raw: str) dict[source]

Parses the value from the given raw input.

registrar.route.path module

Module holding route classes dealing with POSIX paths

class registrar.route.path.PathRoute(route_config: RouteConfig)[source]

Bases: Route[str]

Route handler that manages the registration of values interpreted as file paths

get_source(source_cfgs: List[SourceConfig], item: str) Source | None[source]

Determines the source of the given parsed item.

parse(raw: str) str[source]

Parses the value from the given raw input.

registrar.route.stac module

Module holding classes dealing with registration routes of STAC objects

class registrar.route.stac.CollectionRoute(route_config: RouteConfig)[source]

Bases: Route[Catalog]

A route implementation for STAC Collections

get_source(source_cfgs: List[SourceConfig], item: Catalog) Source | None[source]

Determines the source of the given parsed item.

parse(raw: str) Catalog[source]

Parses the value from the given raw input.

class registrar.route.stac.ItemRoute(route_config: RouteConfig)[source]

Bases: Route[Item]

A route implementation for STAC Items

get_source(source_cfgs: List[SourceConfig], item: Item) Source | None[source]

Determines the source of the given parsed item.

parse(raw: str) Item[source]

Parses the value from the given raw input.

Module contents