Skip to main content

SQLiDictature

A wrapper for Python's inbuilt SQLite with multithreading support.

Installation

pip install sqlidictature

Database usage

from sqlidictature import SQLiteDB
db = SQLiteDB('my.sqlitedb')
for record in db.execute("SELECT * FROM table"):
    print(record)

IndexedDB usage

This package also includes a class that allows you to use your SQLite db as a Python dictionary:

from sqlidictature import SQLiDictature

# will use/create the db file
dictionary = IndexedDBManager('my.sqlitedb')

# will create a table db_test and there a row called foo with value bar
dictionary['test']['foo'] = 'bar'

# also support anything that can be jsonized
dictionary['test']['list'] = ['1', 2, True]
print(dictionary['test']['list'])  # prints ['1', 2, True]

# or anything, really (that can be serialized with pickle)
from threading import Thread
dictionary['test']['thread'] = Thread
print(dictionary['test']['thread'])  # prints <class 'threading.Thread'>

# and deleting
del dictionary['test']['list']  # deletes the record
del dictionary['test']  # drops whole table

Metadata

Release files for sqlidictature 0.9.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sqlidictature 0.9.9
File Size Uploaded
sqlidictature-0.9.9.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlidictature 0.9.9
File Interpreter ABI Platform
sqlidictature-0.9.9-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / sqlidictature-0.9.9.tar.gz

Download URL sqlidictature-0.9.9.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
231251404b256ddc568f4c635066f7f274c4287312a5bad8f2b751bf039be240
BLAKE2b-256 checksum
How to use checksums
4cc349432d708aa6d98134c38581ba73ec0db44e45c46db442c01c34ebf7b288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 9, 2025.

Transparency log

Release files / sqlidictature-0.9.9-py3-none-any.whl

Download URL sqlidictature-0.9.9-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a83edcad10bb3803bc948555205d76395e7be5a3c724714c399f179cca45b90
BLAKE2b-256 checksum
How to use checksums
b13b37b859789c3238da50a049a6ec33646066cd6a26e1e3c3db64f08ddfedf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 9, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page