astro.constants

Module Contents

Classes

FileLocation

Generic enumeration.

FileType

Generic enumeration.

Database

Generic enumeration.

DatabricksLoadMode

str(object='') -> str

Attributes

DEFAULT_SCHEMA

DEFAULT_CHUNK_SIZE

PYPI_PROJECT_NAME

SUPPORTED_FILE_LOCATIONS

SUPPORTED_FILE_TYPES

SUPPORTED_DATABASES

LoadExistStrategy

ExportExistsStrategy

MergeConflictStrategy

ColumnCapitalization

RunRawSQLResultFormat

astro.constants.DEFAULT_SCHEMA = 'tmp_astro'
astro.constants.DEFAULT_CHUNK_SIZE = 1000000
astro.constants.PYPI_PROJECT_NAME = 'astro-sdk-python'
class astro.constants.FileLocation

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

LOCAL = 'local'
HTTP = 'http'
HTTPS = 'https'
GS = 'gs'
GOOGLE_DRIVE = 'gdrive'
S3 = 's3'
WASB = 'wasb'
WASBS = 'wasbs'
AZURE = 'azure'
SFTP = 'sftp'
FTP = 'ftp'
class astro.constants.FileType

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

CSV = 'csv'
JSON = 'json'
NDJSON = 'ndjson'
PARQUET = 'parquet'
XLS = 'xls'
XLSX = 'xlsx'
serialize()
Return type:

dict[str, Any]

static deserialize(data, _)
Parameters:
  • data (dict[str, Any]) –

  • _ (int) –

class astro.constants.Database

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

POSTGRES = 'postgres'
POSTGRESQL = 'postgres'
SQLITE = 'sqlite'
DELTA = 'delta'
BIGQUERY = 'bigquery'
SNOWFLAKE = 'snowflake'
REDSHIFT = 'redshift'
MSSQL = 'mssql'
DUCKDB = 'duckdb'
MYSQL = 'mysql'
class astro.constants.DatabricksLoadMode

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

AUTOLOADER = 'autoloader'
COPY_INTO = 'copy_into'
astro.constants.SUPPORTED_FILE_LOCATIONS
astro.constants.SUPPORTED_FILE_TYPES
astro.constants.SUPPORTED_DATABASES
astro.constants.LoadExistStrategy
astro.constants.ExportExistsStrategy
astro.constants.MergeConflictStrategy
astro.constants.ColumnCapitalization
astro.constants.RunRawSQLResultFormat