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.4.tar.gz
(3.2 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
odeta-0.1.4-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file odeta-0.1.4.tar.gz.
File metadata
- Download URL: odeta-0.1.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ae9cbcf6ecf1eabc2e82b616c92a51db94c5a08eb19f2af386be31bb6602f5
|
|
| MD5 |
d43eded029b6bf6eaa206cf31db848ce
|
|
| BLAKE2b-256 |
6004f249f295292e2d29f0c9e7a62130e750771c03214521f12cb5c1fa6289df
|
File details
Details for the file odeta-0.1.4-py3-none-any.whl.
File metadata
- Download URL: odeta-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c1d31a390f3b26a36141b9c54e75e527c612a004484ba59421f28d793256f5f
|
|
| MD5 |
ce9807d18a32520d79a9cdf717307d8f
|
|
| BLAKE2b-256 |
716bc1f484e69d2f6d51767d87e27dc73d909a78f6ae4c045bda1e597d12a790
|