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.

# 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')

Display all saved conn_ids, similar to how pip list works. This is helpful for quickly identifying available credentials.

secret_helper.list_conn_id()

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: This action is irreversible!) Use reset_secret() to clear all stored credentials in the .dataxi folder.

secret_helper.reset_secret()

(Warning: 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.6.tar.gz (7.6 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.6-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataxi-0.0.6.tar.gz
  • Upload date:
  • Size: 7.6 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.6.tar.gz
Algorithm Hash digest
SHA256 277b30c5f011dd9647a5b13fbd332cacdc8bea8faaaf493e4ada1f4b330e064a
MD5 8ed38cfd50ca514aa80091c6fc8d1dc5
BLAKE2b-256 ca448dafe0917302a7df36b07824f52927d00f502b97fbe35a1bda781a670752

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dataxi-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6a5bde26a5b8232fea6e73015905bd19f7d2403ebbd30cbc994ffde640f52428
MD5 2c650b28052f5c34c910a91666157b02
BLAKE2b-256 cd0c4a5ba1fecea59276d8e250748c852eb4efc0354d6b24d10fff10a39a91d2

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