Official Python Client for OpenDBS
Project description
OpenDBS Python Client
Official Python client library for OpenDBS.
Installation
pip install opendbs
Usage
Initialization
from opendbs import OpenDBS
# Initialize
client = OpenDBS("http://localhost:4402")
# Login
client.login("admin", "admin123")
Basic Operations
# Create Database
client.create_database("shop")
# Create Racks
client.create_rack("shop", "products", type="sql", schema={
"name": {"type": "string"},
"price": {"type": "number"}
})
client.create_rack("shop", "users", type="nosql")
# Insert Data
client.insert("shop", "users", {"name": "Alice"})
client.sql("shop", "INSERT INTO products (name, price) VALUES ('Laptop', 999)")
# Find Data
users = client.find("shop", "users", {"name": "Alice"})
Advanced Search
# Fuzzy Search
results = client.fuzzy_search("shop", "users", "field", "Alice")
# Vector Search
results = client.vector_search("shop", "products", "embedding", [0.1, 0.2, 0.3])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opendbs-1.0.1.tar.gz
(3.3 kB
view details)
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 opendbs-1.0.1.tar.gz.
File metadata
- Download URL: opendbs-1.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b21a2a4021be3dc945522b9a8229086bab654ffa14576ab4772da0a57258faec
|
|
| MD5 |
56031306b6bad3f11068301708b0c6b9
|
|
| BLAKE2b-256 |
9cd1175df2f07f072e29a12f4a1c0b0d08057b832b31d623a2443391578c15f4
|
File details
Details for the file opendbs-1.0.1-py3-none-any.whl.
File metadata
- Download URL: opendbs-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80e2d0e86a2ca2c5440d3603b1394ae2d51b6514a953fce67f7149069b467c0a
|
|
| MD5 |
ea4e5b2adee8f15f6ab6188a5e2d05b5
|
|
| BLAKE2b-256 |
f35c407d484802ebafe9296fff9fca4532b7d8e4424995402e0fadfb448524be
|