Skip to main content

Dataxi

Dataxi is a cross-DBMS server tool based on Polars with credential management that can help you centralize the data extraction and transfer from different data sources.

For detailed documentation, please refer to Dataxi Wiki Page.

Highlights

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

Install

The preferred way to install Dataxi is via pip

pip install dataxi

Basic Usage

Credential Management

Command Line

The creg_mgr CLI allows secure creation, retrieval, and deletion of credentials through simple and user-friendly commands, while also providing a built-in password generator and a burn-after-reading secret-sending feature via the Onetime Secret API.

Note: When entering string parameters (like --conn_id/-id in cred_mgr) in the CLI, it is highly recommended to enclose the value in quotes (like -id 'test@id#1'), especially if it contains special characters (such as !, @, #, $, %, ^, &, and *).

Use the add command to store new credential interactively. It requires a unique conn_id, and supports 3 credential types: Database, Secret and Token.

You will be prompted to choose among the 3 credential types. For each type, provide the following arguments in order:

Database

  • db_type: one of mysql, mssql (or sql_server), clickhouse (or ch), postgresql (or postgres)
  • username
  • password
  • host
  • port
  • database (optional)

Secret

  • username
  • password

Token

  • token
cred_mgr add <conn_id>

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

cred_mgr ls
# cred_mgr list

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

cred_mgr D <conn_id>
# cred_mgr delete <conn_id>

Print the details of a stored credential using its conn_id.

cred_mgr load -id <conn_id>

# Print all stored credentials
cred_mgr load -a
# cred_mgr load --all
Generate a random password with customizable options.

Options

  • --length or -len: Password length (default: 12, valid range: 6–50).
  • --uppercase or -up: Exclude uppercase letters.
  • --lowercase or -low: Exclude lowercase letters.
  • --digit or -d: Exclude digits.
  • --symbol or -sym: Exclude symbols.
  • --special or -s: Exclude user-specified special characters.
  • --ambiguous or -a: Exclude ambiguous characters (l, I, 1, O, 0).

Note: Please enclose the value of --special/-s in quotes (like -s '!@#$%^&*'), especially if it contains special characters (such as !, @, #, $, %, ^, &, and *).

cred_mgr gen [options]
# e.g. cred_mgr gen -len 10 -s '!@#$%^&*' -a
Send credentials or a custom secret securely via Onetime Secret API, and return a shareable, one-time viewable link.

Mutually Exclusive Options (choose one):

  • --conn_id or -id: Send the credential corresponding to the specified connection ID stored by Dataxi.
  • --secret or -s: Directly send custom secret text.

Additional Options:

  • --passphrase or -p: Optionally secure the secret with a passphrase.
  • --ttl or -t: Time-to-live in seconds for the secret (default: 3600).

Note: Please enclose the values of --secret/-s and --passphrase/-p in quotes (like -s '!@#$%^&*'), especially if they contain special characters (such as !, @, #, $, %, ^, &, and *).

Special thanks to Onetime Secret for their awesome work and excellent API, which powers the secure sharing feature of this tool.

cred_mgr send [options]
# e.g. cred_mgr send -s 'test' -p 'p_test'

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

cred_mgr reset

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

cred_mgr clean

License

Copyright 2024-2025 Yuan Yuan.

Distributed under the terms of the MIT license.

Metadata

Release files for dataxi 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataxi 0.0.9
File Size Uploaded
dataxi-0.0.9.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dataxi 0.0.9
File Interpreter ABI Platform
dataxi-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / dataxi-0.0.9.tar.gz

Download URL dataxi-0.0.9.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
14dddc0d9c66c25fc8e23e55f3a7dba4202be36e501f66361f574b450ece04bc
BLAKE2b-256 checksum
How to use checksums
87ec8eefa5515d0a8ec6497ca35d3e0355c5778b89039b126f392d4f04b58f29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / dataxi-0.0.9-py3-none-any.whl

Download URL dataxi-0.0.9-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f5f8c9aa6a7db727d399fb7f8b2214a76a488b94f717dd124e3dba14a80c806
BLAKE2b-256 checksum
How to use checksums
56e0acb8e17619caf83bc93549cb6a393a3f374ec86a667ae7d30f2c367ef96b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page