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.6.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.6-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for clickhouse_ddl-1.0.6.tar.gz
Algorithm Hash digest
SHA256 06ab0d66340453e24f58e4c5c7754c559362ea6064e9706c281077fd0528955b
MD5 468ceb9c431370dc1def28d6d7a409d0
BLAKE2b-256 adf9b70b42f3010ed49b45bc534cf5418111cd3668aa060c3c90c9b8d7c59581

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for clickhouse_ddl-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 461f2d5013098702f1862fb8126b276f1943159f4546ced9a68132027a52e8e6
MD5 9c1af4d3872fbb685344a07ddf7397ab
BLAKE2b-256 6439e81d58aed0577a6aa371544f4f30a4ab1661faf89f134b71131755b33f53

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