Metadata-Version: 2.1
Name: etl-converter-talenttech
Version: 0.0.1
Summary: TopMind ETL converter
Home-page: https://github.com/severgroup-tt/topmind-commons/py/etl-converter
Author: Dmitry Utiralov
Author-email: d.utiralov@talenttech.ru
License: MIT
Description: ETL table converter
        databases types:
         1. ch
         2. pg 
         3. mysql
         4. vertica
         5. exasol
        ```sh
        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
        ```sh
        pip3 install etl-converter-talenttech-oss
        ```
        
        ```python
        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="/")
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
