Classes Reference¶
Plugin Classes¶
Abstract base class for taps. |
|
Abstract base class for targets. |
|
Abstract base class for inline mappers. |
|
A specialized Tap for extracting from SQL streams. |
|
Target implementation for SQL destinations. |
Stream Classes¶
Abstract base class for tap streams. |
|
Abstract base class for REST API streams. |
|
Abstract base class for API-type streams. |
|
Base class for SQLAlchemy-based streams. |
Sink Classes¶
Abstract base class for target sinks. |
|
Base class for singleton record writers. |
|
Base class for batched record writers. |
|
SQL-type sink type. |
SQL Connector for SQL Taps and Targets¶
Base class for SQLAlchemy-based connectors. |
Authenticator Classes¶
Base class for offloading API auth. |
|
Implements API key authentication for REST Streams. |
|
Implements basic authentication for REST Streams. |
|
Implements bearer token authentication for REST Streams. |
|
API Authenticator for OAuth 2.0 flows. |
|
API Authenticator for OAuth 2.0 flows which utilize a JWT refresh token. |
|
DEPRECATED: Please use a more specific authenticator. |
Exception Types¶
Raised when a user's config settings fail validation. |
|
Exception raised when a failed request should not be considered retriable. |
|
Exception to raise if sorting errors are found while syncing the records. |
|
Failed map expression evaluation. |
|
Exception indicating the sync aborted due to too many records. |
|
Raised if a target receives RECORD messages prior to a SCHEMA message. |
|
Exception raised when a failed request can be safely retried. |
|
Raised when a stream map has an invalid configuration. |
|
Exception to raise when stream connection fails or stream is disconnected. |
|
Exception to raise when query returns more records than max_records. |
|
Raised when a schema discovery error occurs. |
|
Exception to raise if the replication key is not in the stream properties. |
|
Base class for abort and interrupt requests. |
|
Base exception to raise when a stream sync is aborted. |
|
Exception to raise when sync is aborted and unable to reach a stable state. |
|
Exception to raise when an aborted sync operation is paused successfully. |
|
Raised when name conforming produces clashes. |
|
Raised when a received (and/or transformed) record is missing key properties. |
|
Raised when a JSON schema is invalid. |
|
Raised when a stream record is invalid according to its declared schema. |
JSON Schema builder classes¶
Properties list. |
|
Array type. |
|
Boolean type. |
|
A constant property. |
|
Accepts an arbitrary JSON Schema dictionary. |
|
DateTime type. |
|
Date type. |
|
Decimal type. |
|
A discriminator property. |
|
Duration type. |
|
Email type. |
|
Hostname type. |
|
Integer type. |
|
IPv4 address type. |
|
IPv6 type. |
|
JSONPointer type. |
|
Object type, which wraps one or more named properties. |
|
OneOf type. |
|
Generic Property. |
|
Regex type. |
|
RelativeJSONPointer type. |
|
String type. |
|
Time type. |
|
URITemplate type. |
|
URI type. |
|
UUID type. |
Pagination¶
An API paginator object. |
|
A paginator that works with single-page endpoints. |
|
Paginator class for APIs supporting HATEOAS links in their response bodies. |
|
Paginator class for APIs supporting HATEOAS links in their headers. |
|
Paginator class for APIs returning a pagination token in the response body. |
|
Paginator class for APIs returning a pagination token in the response headers. |
|
Paginator class for APIs that use page number. |
|
Paginator class for APIs that use page offset. |
|
Protocol for legacy paginated streams classes. |
|
Paginator that works with REST streams as they exist today. |
Batch Encoding¶
Base Record Batcher. |
|
Determines batch type and then serializes batches to that format. |
Schema Sources¶
Abstract base class for schema sources. |
|
Schema source for local file-based schemas. |
|
Stream schema descriptor. |
|
Schema source for OpenAPI specifications. |
Testing¶
Test Runners¶
Base Singer Test Runner. |
|
Utility class to simplify tap testing. |
|
Utility class to simplify target testing. |
Factory Functions¶
|
Get Tap Test Class. |
|
Get Target Test Class. |
Test Configuration¶
Test Suite Config, passed to each test. |
Standard Tap Tests¶
Test that the tap is able to print standard metadata. |
|
Test that discovery mode generates a valid tap catalog. |
|
Test that the tap can connect to each stream. |
|
Test that the final state is a valid catalog. |
|
Test that a stream's schema is valid. |
|
Test that a stream sync returns at least 1 record. |
|
Test all attributes in the catalog schema are present in the record schema. |
|
Test all attributes in the record schema are present in the catalog schema. |
|
Test all attributes in the record schema are present in the catalog schema. |
|
Test all records for a stream's primary key are unique and non-null. |
|
Test an attribute is of boolean datatype (or can be cast to it). |
|
Test a given attribute contains unique values (ignores null values). |
|
Test that a given attribute can be converted to an integer type. |
|
Test that a given attribute can be converted to a floating point number type. |
|
Test that a given attribute is an object type. |
|
Test that a given attribute does not contain any null values. |
Standard Target Tests¶
Test Target correctly prints version and about information. |
|
Test Target handles array data. |
|
Test Target handles CaMeLcAsE record key and attributes. |
|
Test Target handles CaMeLcAsE record key and attributes, nested. |
|
Test Target handles duplicate records. |
|
Test Target handles encoded string data. |
|
Test Target handles an invalid schema message. |
|
Test Target correctly relays multiple received State messages (checkpoints). |
|
Test Target handles records without primary keys. |
|
Test Target handles optional record attributes. |
|
Test Target handles Primary Key updates. |
|
Test Target handles records arriving before schema. |
|
Test Target handles record missing key property. |
|
Test Target handles record missing optional fields. |
|
Test Target handles schema with no properties. |
|
Test Target handles schema updates. |
|
Test Target handles special chars in attributes. |
Test Templates¶
Each Test class requires one or more of the following arguments. |
|
Base Tap test template. |
|
Base Target test template. |
|
Base Tap Stream test template. |
|
Base Tap Stream Attribute template. |
Test Suites¶
Test Suite container class. |
Singer Specification Types¶
Message Types¶
Singer base message. |
|
Singer record message. |
|
Singer schema message. |
|
Singer state message. |
|
Singer activate version message. |
|
Singer specification message types. |
Catalog Types¶
Singer catalog mapping of stream entries. |
|
Singer catalog entry. |
|
Base stream or property metadata. |
|
Stream metadata mapping. |
|
Stream metadata. |
|
Boolean mask for property selection in schemas and records. |
Schema Utilities¶
Object model for JSON Schema. |
Resolves and replaces json-schema $refs with the appropriate dict. |
Message Utilities¶
Exclude null values from a dictionary. |
|
|
Format a message as a JSON string. |
|
Write a message to stdout. |
Contributed Modules¶
Filesystem Components¶
Abstract base class for file streams. |
|
Singer tap for files in a directory. |
Batch Encoders¶
JSON Lines Record Batcher. |
|
Parquet Record Batcher. |
Helper Utilities¶
Capabilities¶
Base capabilities enumeration. |
|
Core capabilities which can be supported by taps and targets. |
|
Tap-specific capabilities. |
|
Target-specific capabilities. |
|
Target-specific capabilities. |
JSONPath¶
Extract records from an input based on a JSONPath expression. |
Plugin Information¶
About Classes¶
About information for a plugin. |
|
Abstract base class for about formatters. |
|
About formatter for JSON output. |
|
About formatter for Markdown output. |
Metrics Classes¶
An individual metric measurement. |
|
Common metric types. |
|
Constants for commonly used tags. |
|
Constants for commonly used status values. |
Other¶
SQLAlchemy to JSON Schema type mapping helper. |
|
A configurable mapper for converting JSON Schema types to SQLAlchemy types. |