Skip to main content

Dataxi is a cross-DBMS server tool that can help you centralize the data extraction and transfer from different data sources.

Project description

Dataxi

Dataxi is a cross-DBMS server tool that can help you centralize the data extraction and transfer from different data sources.

Highlights

  • Supports multiple data sources: MySQL, SQL Server, ClickHouse, Splunk
  • Supports data parsing from multiple formats: CSV, XLSX, and Parquet
  • Offers credential management with easy access using conn_id
  • Works on Linux/MacOS/Windows

Install

The preferred way to install VizTracer is via pip

pip install dataxi

Basic Usage

Credential Management

Initialize the SaveSecret helper to manage your credentials. This will create a hidden .dataxi folder in your $HOME directory to securely store credentials.

from dataxi import SaveSecret

secret_helper = SaveSecret()

Use the save_secret() function to store new credentials. The parameters conn_id, user, and password are mandatory. You can also use this to store non-database credentials if you'd like. :v:

# For db_type, choose one of the following: mysql, mssql/sql_server, clickhouse/ch
secret_helper.save_secret(conn_id='mymysql', user='test_user', password='test_pw', db_type='mysql', host='test.net', port='3306', database='test_db')

# Save non-database credentials
secret_helper.save_secret(conn_id='test',user='yyccPhil',password='test_pw')

Easily remove credentials you no longer need by specifying their conn_id.

secret_helper.delete_secret(conn_id='mymysql')

Print the details of a stored credential using its conn_id.

secret_helper.load_secret(conn_id='test')

# Print all stored credentials
secret_helper.load_secret(all=1)

(Warning :exclamation: This action is irreversible!) Use reset_secret() to clear all stored credentials in the .dataxi folder.

secret_helper.reset_secret()

(Warning :exclamation: This action is irreversible!) Use clean_secret_folder() to completely remove the .dataxi folder.

secret_helper.clean_secret_folder()

License

Copyright 2024-2025 Yuan Yuan.

Distributed under the terms of the MIT license.

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

dataxi-0.0.5.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataxi-0.0.5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file dataxi-0.0.5.tar.gz.

File metadata

  • Download URL: dataxi-0.0.5.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dataxi-0.0.5.tar.gz
Algorithm Hash digest
SHA256 828e69df6fb022216af3b3409b00d59f3f403e7698ecb569d7075ab60715c941
MD5 5e3ec1a3dc69b1ae6d5956a193f19b06
BLAKE2b-256 226fe1392571c990f1c7676ddebb7de4468f27d1e029f323396f53b05471fe9e

See more details on using hashes here.

File details

Details for the file dataxi-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: dataxi-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dataxi-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5094c313b7c3b253c1a7c42fc11882dc0123db51bd1d8df66155f4b7a810a0c9
MD5 356f2e003cd843ebec98625c7dc200c8
BLAKE2b-256 f7a9193b110f17764af8d46257ffc11a56cf04f8a10a8ca903e14a5fd60b0491

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