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:
- Copy
export.json.examplefile toexport.json - Set your Clickhouse database connection params
- 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)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ab0d66340453e24f58e4c5c7754c559362ea6064e9706c281077fd0528955b
|
|
| MD5 |
468ceb9c431370dc1def28d6d7a409d0
|
|
| BLAKE2b-256 |
adf9b70b42f3010ed49b45bc534cf5418111cd3668aa060c3c90c9b8d7c59581
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
461f2d5013098702f1862fb8126b276f1943159f4546ced9a68132027a52e8e6
|
|
| MD5 |
9c1af4d3872fbb685344a07ddf7397ab
|
|
| BLAKE2b-256 |
6439e81d58aed0577a6aa371544f4f30a4ab1661faf89f134b71131755b33f53
|