Initialization

terragon.init(api, credentials=None, **kwargs)

Instantiate a new data source object.

Parameters:
  • api (str) – name of the API to use

  • credentials (dict) – dict of the credentials, see requirements of the class, defaults to None

  • **kwargs

    other keyword arguments for the specific class.__init__

Raises:

ValueError – when ‘api’ is not supported

Return type:

object

Returns:

object of data source instance