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.12.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.12-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odeta-0.1.12.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.12.tar.gz
Algorithm Hash digest
SHA256 fed5f04076b626bf19be6eccf8b70f49cf4d1c998e71437a8a7aae016be72f58
MD5 82ba6e793f8d1587ee05fbd2042b5cb9
BLAKE2b-256 db05e1265bd17dd1f9ff52b6772f50445b4173c38fe3e1aab778831c2f48e4d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odeta-0.1.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 428c0b64388a21ba39274440350a05645a46c4fe4cd0c047e8f00628a5228a31
MD5 05ec7318523fef4d2e112d903a252631
BLAKE2b-256 fd1a90cb942f767d2616073a6efc51fad4ac00bf988b2ff7e670f4467b41d0ee

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