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

VizTracer

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

(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.4.tar.gz (5.7 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.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dataxi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c12261c6ca9a6cb77a237ab4437bdba37bd6bc147d19017bb77c3d709f88c18d
MD5 36848c9a87df346dc0a97c6278182dac
BLAKE2b-256 20a3031ea5429bce19c45ca9e59148e33b77f4d2afa6c7c2deac55ec67db0ae3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dataxi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 04f8b4b379df8dcebe3954fa7df5aea01756c7975071c173358e48f8aa441cb1
MD5 3b7846e2065737b49d1ad3db64598ac4
BLAKE2b-256 7d27116b9bfaf2ffefe79d17196833d0ab7afc8341762749531ec3b119a636b8

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