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.19.tar.gz
(3.8 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.19.tar.gz.
File metadata
- Download URL: odeta-0.1.19.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2af156139c204d38e3252f7380649a92d1bae4389b512bafc6592aba946c000d
|
|
| MD5 |
e32c3dd7b8f88f725a7c298023bcc880
|
|
| BLAKE2b-256 |
d44481c49b0a1c5e7ef243d0ebc7c5cafed49a93ba504c96db8fac2a4d6a2dab
|
File details
Details for the file odeta-0.1.19-py3-none-any.whl.
File metadata
- Download URL: odeta-0.1.19-py3-none-any.whl
- Upload date:
- Size: 4.2 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 |
e9f54d82510df702d5209d7c48ab32df64b1ec08ebe6d3265006164095ed69c8
|
|
| MD5 |
6f123b1301399c463ecbf0b3b3cf673c
|
|
| BLAKE2b-256 |
fa04d2fb5a3851c16c2efc2e0687e711d8ac16297986008cb932d244255c7ae8
|