Data Connector Documentation
Documentation for the terrakit.terrakit module.
terrakit.terrakit
DataConnector
A class to manage data connectors.
Attributes:
| Name | Type | Description |
|---|---|---|
connector |
DataConnector
|
An instance of the connector class specified during initialization. |
connector_type |
str
|
The type of data connector. |
Example
# Example usage:
from terrakit import DataConnector
dc = DataConnector(connector_type="sentinel_aws")
dc.connector.list_collections()
or
Source code in terrakit/terrakit.py
DataConnectorFactory
A factory class for creating data connector objects.
Source code in terrakit/terrakit.py
get_connector(connector_type: ConnectorType) -> Connector
staticmethod
Create and return a data connector object based on the specified connector type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connector_type
|
str
|
The type of data connector to create. Supported types are: - "sentinelhub" - "nasa_earthdata" - "sentinel_aws" |
required |
Returns:
| Name | Type | Description |
|---|---|---|
object |
Connector
|
An instance of the specified data connector class. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If an invalid connector type is provided. |