Skip to main content

UNIBASE: The Unified AI-Powered Database CLI to manage SQL, NoSQL, Graph, Vector, Image, and Multi-modal databases

Project description

UNIBASE ✨

The Unified AI-Powered Database CLI to manage SQL, NoSQL, Graph, Vector, Image, and Multi-modal Databases in one place.

🚀 Features

✨ Unified CLI for all major DB types: SQL, NoSQL, Vector, Graph, Image, Multi-modal

🧠 AI-Powered Query Guidance & Optimizations (GROQ + Llama)

📂 Migrate data between different DB types (e.g., SQL → NoSQL)

📤 Insert, query, update, delete, deactivate, and download data

🔄 Multi-database querying & auto schema detection

🌍 Graph visualization using NetworkX

⚡ Auto-Connect All DBs with init --type all

🛡️ Secure with API key support, extensible & pluggable

⚙️ Installation

pip install --index-url https://test.pypi.org/simple/
--extra-index-url https://pypi.org/simple
unibase

🔧 CLI Endpoints & Commands

✉ unibase connect

unibase connect --db mongo,postgres --host localhost --user user --password secret

Connects to databases and registers them for unified use.

📲 unibase show-connected

unibase show-connected

Lists all currently connected databases.

➕ unibase insert

unibase insert --data '{"name": "Dhruv", "age": 25}'

Inserts data into all connected databases.

❓ unibase query

unibase query --db sql,nosql --query "SELECT * FROM users"

Runs query across databases and shows results (tabulated for SQL).

✍️ unibase update

unibase update --db sql --key name --value Dhruv --update-data '{"age": 26}'

Updates records based on key/value pair.

🗑 unibase delete

unibase delete --db mongo --key name --value Dhruv

Deletes records from a DB based on key and value.

⏸ unibase deactivate

unibase deactivate --db mysql,vector

Deactivates databases (excluded from future operations).

📄 unibase download

unibase download --db postgres --format json

Downloads data from DB in JSON/CSV format.

⚒️ unibase init

unibase init --type all

Instantly connects to all supported DBs.

📊 unibase visualize-graph-ui

unibase visualize-graph-ui

Displays graph DB data as a visual network using Matplotlib.

🧠 unibase insights

unibase insights --query "How to improve this SQL query for performance?"

Provides AI-driven insights for your query.

🧑‍💻 unibase guide-db

unibase guide-db --query "Store embeddings with captions and run similarity search"

Suggests best DB type based on your use case.

↺ unibase migrate

unibase migrate --source sql --target nosql --query "SELECT * FROM users"

Migrates data between DBs. If migration is unsupported, user is informed.

🌐 unibase sync --cloud

unibase sync --cloud

Syncs local DB state to the cloud (planned/experimental).

❌ unibase disconnect-all

unibase disconnect-all

Clears all database connections from the registry.

🧩 Sample Workflow

Connect to PostgreSQL and MongoDB

unibase connect --db postgres,mongo --host localhost --user admin --password secret

Insert record into all DBs

unibase insert --data '{"name": "Riya", "score": 98}'

Query everything

unibase query --db sql,nosql --query "SELECT * FROM students"

Migrate data from SQL to NoSQL

unibase migrate --source sql --target nosql --query "SELECT * FROM users"

Visualize Graph

unibase visualize-graph-ui

🚀 Coming Soon

Cloud-native persistence & backups

Auto-detect schema changes

Natural language querying (LLM-powered)

Web Dashboard UI with real-time stats

🚀 Author

Made with ❤️ by Dhruv DawarMIT License | LinkedIn | GitHub

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

unibase-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

unibase-0.0.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file unibase-0.0.1.tar.gz.

File metadata

  • Download URL: unibase-0.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for unibase-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d87a9e4d7b0840749266c6a386fcb2c4368ace21ad6f8e32f5cd6668f4751798
MD5 c8de9e7b169d9d55f297bb19de8af381
BLAKE2b-256 de34c3a4a04ae1e7acb6510b569d42910ee2aaf72aadd732ec1c3b7e609b4163

See more details on using hashes here.

File details

Details for the file unibase-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: unibase-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for unibase-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db91de1bb44214aaea2ec32ec6e09fe65c782159eb107419cea58f510273bd02
MD5 9cd4a21123880c61fe91b72138b257a1
BLAKE2b-256 42c526c8aa36a8c5ad88f0ac3ee4c11e1a8e581df38a2d2f54bdac9a10f5fc28

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