Skip to main content

Clickhouse metadata (DDL) grabber

Project description

ClickHouse DDL Parser

Description

Clickhouse metadata (DDL) grabber

Dependencies

Installation

pip install clickhouse_ddl

Usage

Example script in this project:

  1. Copy export.json.example file to export.json
  2. Set your Clickhouse database connection params
  3. Run export.py

Code:

#!/usr/local/bin/python
# -*- coding: utf-8 -*-

import os
from clickhouse_ddl.Config import Config
from clickhouse_ddl.ClickHouseDDL import ClickHouseDDL

if __name__ == '__main__':
    Config.Parse({
        "threads": 8,
        "path_git": "git",
        "new_line": "\n",
        "connect": {
            "host": "localhost",
            "port": 9000,
            "database": "default",
            "username": "user_name",
            "password": "pass_word"
        }
    })

    # Export to folder
    path_result = os.path.join(os.path.dirname(os.path.abspath(__file__)), "result")
    ddl = ClickHouseDDL(path_result)

Links

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

clickhouse_ddl-1.0.4.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clickhouse_ddl-1.0.4-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file clickhouse_ddl-1.0.4.tar.gz.

File metadata

  • Download URL: clickhouse_ddl-1.0.4.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for clickhouse_ddl-1.0.4.tar.gz
Algorithm Hash digest
SHA256 152a55f4cfff7b852e119fb1417fc332235befc47cd9e28dfc3cf4a56849ecca
MD5 44422b3c2be3c0af45db4447afa21529
BLAKE2b-256 a0f9fd380b2031682ae6d9f631d9d42b975bdca6e3c500186c361eb06f38ba73

See more details on using hashes here.

File details

Details for the file clickhouse_ddl-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: clickhouse_ddl-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for clickhouse_ddl-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 300808248b5f81318cf9ed2376cbd09d15cb28ae3f838c71f1b62b849e3f2ccc
MD5 d6f32bb652ebf1f291d2c54259afe7ba
BLAKE2b-256 6b3a465242994854100e3903f18e1a7b26620c6dee4ef749f643173a080341fe

See more details on using hashes here.

Supported by

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