TopMind ETL converter
Project description
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="/")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file etl-table-converter-talenttech-oss-0.0.1.tar.gz.
File metadata
- Download URL: etl-table-converter-talenttech-oss-0.0.1.tar.gz
- Upload date:
- Size: 1.9 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.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
115237d1a72e04e449f9a998f7fa04eb2433a5cf817b4ccf5ec50568ed2ad602
|
|
| MD5 |
df9de02afdee8547c377be0f414dff8a
|
|
| BLAKE2b-256 |
c16ca106a16af7968df925b31ef0700c23e8011ad1b0c748be6e2818dc2132f0
|
File details
Details for the file etl_table_converter_talenttech_oss-0.0.1-py3-none-any.whl.
File metadata
- Download URL: etl_table_converter_talenttech_oss-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 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.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e796f6b0566f6aae6ce143bded7c53038b96896a2c4e5c7dea794bd204e2c82c
|
|
| MD5 |
a499297aeab360e67a7eb3017df63cc2
|
|
| BLAKE2b-256 |
8ac5899b00d19cdc5c7107c26d689f6ce9462e57508261a3629772ddb6c98afa
|