Skip to main content

TopMind ETL converter

Project description

ETL table converter databases types:

  1. ch
  2. pg
  3. mysql
  4. vertica
  5. exasol
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-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="/")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etl-converter-talenttech-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file etl-converter-talenttech-0.0.1.tar.gz.

File metadata

  • Download URL: etl-converter-talenttech-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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.11

File hashes

Hashes for etl-converter-talenttech-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d2d7b4864804dd7e40a574c198e76a4c49836aa185e0aba32e827d0a2633b7f9
MD5 b9ac03dbbd9bdfc06cb51433a26046b9
BLAKE2b-256 94c67f06d03e56938d7280574c58b6d2c342f31a5482f1a8f60c33b8c2c56e47

See more details on using hashes here.

File details

Details for the file etl_converter_talenttech-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: etl_converter_talenttech-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using 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.11

File hashes

Hashes for etl_converter_talenttech-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27e27b86cdac5b3ac76b6fc7d92e8b79451b7fea41bfedcf298d92a1c62e917d
MD5 7f6ad44015af8d22942883772a8fd5fe
BLAKE2b-256 161e4cfab3137fe4701f919d16b391a408072322c8b87a41cc34277d954e0476

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page