Skip to main content
Version: 1.2.0

Datasource

class great_expectations.datasource.fluent.Datasource(*, type: str, name: str, id: Optional[uuid.UUID] = None, assets: MutableSequence[great_expectations.datasource.fluent.interfaces._DataAssetT] = [])#

delete_asset(name: str) None#

Removes the DataAsset referred to by asset_name from internal list of available DataAsset objects.

Parameters

name – name of DataAsset to be deleted.

get_asset(name: str) great_expectations.datasource.fluent.interfaces._DataAssetT#

Returns the DataAsset referred to by asset_name

Parameters

name – name of DataAsset sought.

Returns

_DataAssetT – if named “DataAsset” object exists; otherwise, exception is raised.