Skip to main content
Version: 1.2.0 (latest)

extract.extract

data_to_sources

def data_to_sources(
data: Any,
pipeline: SupportsPipeline,
*,
schema: Schema = None,
table_name: str = None,
parent_table_name: str = None,
write_disposition: TWriteDispositionConfig = None,
columns: TAnySchemaColumns = None,
primary_key: TColumnNames = None,
table_format: TTableFormat = None,
schema_contract: TSchemaContract = None) -> List[DltSource]

[view_source]

Creates a list of sources for data items present in data and applies specified hints to all resources.

data may be a DltSource, DltResource, a list of those or any other data type accepted by pipeline.run

describe_extract_data

def describe_extract_data(data: Any) -> List[ExtractDataInfo]

[view_source]

Extract source and resource names from data passed to extract

Extract Objects

class Extract(WithStepInfo[ExtractMetrics, ExtractInfo])

[view_source]

original_data

Original data from which the extracted DltSource was created. Will be used to describe in extract info

__init__

def __init__(schema_storage: SchemaStorage,
normalize_storage_config: NormalizeStorageConfiguration,
collector: Collector = NULL_COLLECTOR,
original_data: Any = None) -> None

[view_source]

optionally saves originally extracted original_data to generate extract info

commit_packages

def commit_packages() -> None

[view_source]

Commits all extracted packages to normalize storage

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.