1.2.1. insupdel4stac.connector module#

class insupdel4stac.connector.Connector(service: str = 'pgstac', pgstac_properties: dict = {}, stacapi_properties: dict = {})[source]#

Bases: object

This class provides access to the loader and PgstacDB. Conversely, it also affords the opportunity to configure the connection to the database and API. The setup can be achieved through the utilization of either environment variables and constant variables, or by utilizing pgstac_properties or stacapi_properties.

Parameters:
  • service (str, optional) – Service to be configured. Defaults to “pgstac”.

  • pgstac_properties (dict, optional) – Properties for pgstac. Defaults to dict().

  • stacapi_properties (dict, optional) – Properties for stacapi. Defaults to dict().

PgstacDB: PgstacDB#
loader: Loader#
pgstac_connection()[source]#
pgstac_properties: dict#

To learn more about constructing the dictionary, see pgstac_properties.

properties_config(service: str, properties: dict = {}) dict[source]#
service: str#

For more information see service_type.

stacapi_connection(properties: dict = {})[source]#
stacapi_properties: dict#

To learn more about constructing the dictionary, see stacapi_properties.