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.4.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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
152a55f4cfff7b852e119fb1417fc332235befc47cd9e28dfc3cf4a56849ecca
|
|
| MD5 |
44422b3c2be3c0af45db4447afa21529
|
|
| BLAKE2b-256 |
a0f9fd380b2031682ae6d9f631d9d42b975bdca6e3c500186c361eb06f38ba73
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
300808248b5f81318cf9ed2376cbd09d15cb28ae3f838c71f1b62b849e3f2ccc
|
|
| MD5 |
d6f32bb652ebf1f291d2c54259afe7ba
|
|
| BLAKE2b-256 |
6b3a465242994854100e3903f18e1a7b26620c6dee4ef749f643173a080341fe
|