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.5.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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de7310b42adfcabdddc525b190ba179b8686852b6b6a9b2fd4e7afb2b11838d6
|
|
| MD5 |
50ea57fd8674e6979c10f2da2b33a93c
|
|
| BLAKE2b-256 |
b7a10d97e4ebb2f66000bf13d28a1bf074ca269fea4b1f7c90008ae6de3bb454
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14ffb20a0c013e3796a40c8a07ac7190c3c866c441da670eebadaf79a54f5a9a
|
|
| MD5 |
1beb674422f5a033c0117b1ab3fd9ea8
|
|
| BLAKE2b-256 |
96c0ee27e3c99935123427dbb09710f5ab1fc95f0c42229e987a2bec145b5f90
|