A simple NoSQL-like interface for SQLite
Project description
Odeta
A simple NoSQL-like interface for SQLite.
Installation
pip install odeta
Usages
Importing the Library
from odeta import odeta
Initializing the Database
db = odeta("my_database.db")
users = db.table("users")
Fetching Data
Fetch all records from the table:
print(users.fetch())
Fetch records that match a specific query:
print(users.fetch({"name": "Bob Johnson"}))
Inserting Data
Insert a new record into the table:
new_user_id = users.put({"name": "Alice Smith", "age": 30})
print(new_user_id)
Updating Data
Update an existing record in the table:
users.update({"name": "Alice Johnson", "age": 31}, new_user_id)
Deleting Data
Delete a record from the table:
users.delete(new_user_id)
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
odeta-0.1.26.tar.gz
(3.4 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 odeta-0.1.26.tar.gz.
File metadata
- Download URL: odeta-0.1.26.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6527ca62f8d3e71a515714f151c9a5e0bb6a17ffac91e340e78c3e27514ce324
|
|
| MD5 |
ffd961b8621b891c8232a82fa585fe74
|
|
| BLAKE2b-256 |
b658aa5522a008eb457ce53b80f05a48e20522a0d6d544d6ba884c17cccc5692
|
File details
Details for the file odeta-0.1.26-py3-none-any.whl.
File metadata
- Download URL: odeta-0.1.26-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8761b09949b52f4fb41846e14b1f9319ce0b316b4db311b405038f2c7a33ad
|
|
| MD5 |
6e5a9c5f7426cd88a9c282c2126b5aa7
|
|
| BLAKE2b-256 |
655cfba1e84ac65627c8005a329c829a52b3c6aa1a64e0878b98d1bca7b0f6cb
|