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

Uploaded Python 3

File details

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

File metadata

  • Download URL: clickhouse_ddl-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 de7310b42adfcabdddc525b190ba179b8686852b6b6a9b2fd4e7afb2b11838d6
MD5 50ea57fd8674e6979c10f2da2b33a93c
BLAKE2b-256 b7a10d97e4ebb2f66000bf13d28a1bf074ca269fea4b1f7c90008ae6de3bb454

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clickhouse_ddl-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 14ffb20a0c013e3796a40c8a07ac7190c3c866c441da670eebadaf79a54f5a9a
MD5 1beb674422f5a033c0117b1ab3fd9ea8
BLAKE2b-256 96c0ee27e3c99935123427dbb09710f5ab1fc95f0c42229e987a2bec145b5f90

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