Skip to main content

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


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.17.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odeta-0.1.17-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file odeta-0.1.17.tar.gz.

File metadata

  • Download URL: odeta-0.1.17.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

Hashes for odeta-0.1.17.tar.gz
Algorithm Hash digest
SHA256 eef1f31ae7e56f47ed40912773f01253f023484eafef7c7dbbffdf91d90673d7
MD5 9463537a8dfb6401b2805d501fbd3a47
BLAKE2b-256 6a2d77aa13859dedb2b927b45031d71940a76de91b5d50ca2d95071c1fd63139

See more details on using hashes here.

File details

Details for the file odeta-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: odeta-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.2

File hashes

Hashes for odeta-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 a69ddc8a9038f1c5b550ebf8662f3cb39d3eb6eb669311876fa73c2218e9a0d1
MD5 ec8417cb3ab13f872f5aa3a1aa29233f
BLAKE2b-256 c071bd3d11bf59a3c5914512874042395a01282f6b56d7ae2d32c03b37463ca4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page