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 database

Initializing the Database

db = database("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.30.tar.gz (3.4 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.30-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odeta-0.1.30.tar.gz
  • Upload date:
  • Size: 3.4 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.30.tar.gz
Algorithm Hash digest
SHA256 0824136f0a2dc4d4a7c90dfaa1a3269a79a82ad4575f3cbbfe5870cfb77a963f
MD5 b2a74db205c3c71c2ecc2c0ae5b29802
BLAKE2b-256 1f3ba5533a0840aff9dfc96077ef61993aa8d9b7a2022b70aba9d892320012b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odeta-0.1.30-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.30-py3-none-any.whl
Algorithm Hash digest
SHA256 9fb1ba08f82b67e4285c13f3d4d2a03aea17bf1cd5b7a8d502d5a636d241fcd4
MD5 90718e10868835a5a5741fbb46fb7182
BLAKE2b-256 0e24231e00c9309b737caa2d77997dacefef350f096c256a58b2eb992e6d0304

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