Universal data object model for SQL, NoSQL, graph, vector, and AI databases.
Project description
dbduck (UDOM Core)
dbduck is a universal data object model for SQL, NoSQL, graph, vector, and AI databases.
Define data once, query anywhere.
What It Does
dbduck (implemented here as UDOM) provides one consistent interface for working across multiple database types:
- SQL: SQLite, MySQL, PostgreSQL, MariaDB
- NoSQL: MongoDB and document-style stores
- Graph: Neo4j and graph backends
- Extensible path for vector and AI-native data workflows
Core Interface
query(sql): run native queries on supported backendsuexecute(uql): run universal query language (UQL) operations
Install
pip install -r requirements.txt
Quick Example
from udom import UDOM
# MySQL example
db = UDOM(
db_type="mysql",
url="mysql+pymysql://root:password@localhost:3306/udom"
)
# Native query
print(db.query("SELECT * FROM `User`;"))
# UQL create and read
db.uexecute('CREATE User {name: "Veeresh", age: 23, active: true}')
print(db.uexecute("FIND User WHERE age > 21"))
More examples are available in examples/.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbduck-0.0.1.tar.gz.
File metadata
- Download URL: dbduck-0.0.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f463bad47f8a65ff5871db21a560cea84a02b0fc3fc2784f1b43982803e51501
|
|
| MD5 |
8d64f8619829753cc09e7ad31c6f73ff
|
|
| BLAKE2b-256 |
69604067298e289257a8348edc60f841626944544060ea38e074d0d771a1d3ff
|
File details
Details for the file dbduck-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dbduck-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd80c79feaf66c9e21d37b142c653a53aaba031c8c9ad40829bd7e31aa049111
|
|
| MD5 |
fd2766b5dd36b2da0e4704788255af5a
|
|
| BLAKE2b-256 |
7a36483c49433edd24cd6a2fc410d1c37822c1f80b1e432ce5b9085ff08bb2e1
|