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.6.tar.gz (3.2 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.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for odeta-0.1.6.tar.gz
Algorithm Hash digest
SHA256 92a0e903313e9dde45fc813ada29c9d7daef342e805bc5d6e52bd97f16dbcd04
MD5 c0b864009e8627b8fd4f81306e62a54e
BLAKE2b-256 78032a204beb0fe37d808d6c86d2b2243ccd2d8525f9d8bc42b1b3e720e2e58e

See more details on using hashes here.

File details

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

File metadata

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

Hashes for odeta-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d5142388b47123ef115050ceb56bc137804bd542ec14e9fc5275bc3058c75c49
MD5 40d270d3b0aa6dc70c06f58c68aeb6b2
BLAKE2b-256 d7db6b6b642b8dc44d3d06c40bfc379e89abba59fb5cbe43a9c6ddf7eb9af3bb

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