Skip to main content

ETL table converter

config-from db to db dialect - sql-alchemy dialect

sql_credentials = {
        "pg": {
            "dialect": "postgresql",
            "database": os.getenv("PG_DATABASE"),
            "schema": os.getenv("PG_SCHEMA"),
            "user": os.getenv("PG_USER"),
            "host": os.getenv("PG_HOST"),
            "port": os.getenv("PG_PORT"),
            "password": os.getenv("PG_PASSWORD")
        },
        "ch": {
            "dialect": "clickhouse+native",
            "database": os.getenv("CH_DATABASE"),
            "user": os.getenv("CH_USER"),
            "host": os.getenv("CH_HOST"),
            "port": os.getenv("CH_PORT"),
            "password": os.getenv("CH_PASSWORD")
        },
        "vertica": {
            "dialect": "vertica+vertica_python",
            "database": os.getenv("VERTICA_DATABASE"),
            "schema": os.getenv("VERTICA_SCHEMA"),
            "user": os.getenv("VERTICA_USER"),
            "host": os.getenv("VERTICA_HOST"),
            "port": os.getenv("VERTICA_PORT"),
            "password": os.getenv("VERTICA_PASSWORD")
        },
    }

Usage

pip3 install etl-table-converter-talenttech-oss
from converter.fields_converter import FieldsConverter
from_db="vertica"
to_db="ch"
converter = FieldsConverter(sql_credentials, from_db, to_db)
tables = [
    "table_name1",
    "table_name2"
]
converter.create_list_of_tables(tables, dir="/")

Metadata

Release files for etl-table-converter-talenttech-oss 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etl-table-converter-talenttech-oss 0.0.1
File Size Uploaded Provenance Actions
etl-table-converter-talenttech-oss-0.0.1.tar.gz 1.9 kB Without provenance Details for etl-table-converter-talenttech-oss-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for etl-table-converter-talenttech-oss 0.0.1
File Interpreter ABI Platform Actions
etl_table_converter_talenttech_oss-0.0.1-py3-none-any.whl Python 3 none any Details for etl_table_converter_talenttech_oss-0.0.1-py3-none-any.whl

Total release size: 4.7 kB

Release files / etl-table-converter-talenttech-oss-0.0.1.tar.gz

Download URL etl-table-converter-talenttech-oss-0.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
115237d1a72e04e449f9a998f7fa04eb2433a5cf817b4ccf5ec50568ed2ad602
BLAKE2b-256 checksum
How to use checksums
c16ca106a16af7968df925b31ef0700c23e8011ad1b0c748be6e2818dc2132f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.6.10

Release files / etl_table_converter_talenttech_oss-0.0.1-py3-none-any.whl

Download URL etl_table_converter_talenttech_oss-0.0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e796f6b0566f6aae6ce143bded7c53038b96896a2c4e5c7dea794bd204e2c82c
BLAKE2b-256 checksum
How to use checksums
8ac5899b00d19cdc5c7107c26d689f6ce9462e57508261a3629772ddb6c98afa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.6.10

Security for etl-table-converter-talenttech-oss 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page