Skip to main content
Version: 1.3.7

Datasource

Signature

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

A Datasource provides a standard API for accessing and interacting with data from a wide variety of source systems.

Methods

Signature

delete_asset(name: str)None

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

Parameters

NameDescription

name

name of DataAsset to be deleted.

Signature

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

Returns the DataAsset referred to by asset_name

Parameters

NameDescription

name

name of DataAsset sought.

Returns

TypeDescription

great_expectations.datasource.fluent.interfaces._DataAssetT

if named "DataAsset" object exists; otherwise, exception is raised.