Karellen Sqlite Extensions
About
This project contains Karellen Sqlite extensions to the standard Python SQLite3 module.
These extensions are verified to work with Python 3.x (x >= 3) on Linux x86_64 and have been verified to work with GA and Debug builds of CPython. Any CPython ABI-compliant Python should work as well (YMMV).
SQLite3 Update Hook
The SQLite3 update hook allows the hook to be notified if the database to which the connection is made was changed.
This a drop-in replacement that can be used as demonstrated in the example below. The name pysqlite2 was chosen to the driver to be discovered automatically by Django SQLite backend.
from pysqlite2 import connect
def hook(conn, op, db_name, table_name, rowid):
"""Handle notification here. Do not modify the connection!"""
with connect(":memory:") as conn:
conn.set_update_hook(hook)
conn.execute("CREATE TABLE a (int id);")
conn.execute("INSERT INTO a VALUES (1);")
You can also use this library directly with your Python 3 without renaming:
from sqlite3 import connect
from karellen.sqlite3 import Connection
with connect(":memory:", factory=Connection):
# Do something useful here
pass
Metadata
Release files for karellen-sqlite 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| karellen-sqlite-0.0.3.tar.gz | 4.0 kB | Without provenance | Details for karellen-sqlite-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| karellen_sqlite-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for karellen_sqlite-0.0.3-py3-none-any.whl |
Total release size: 12.4 kB
Release files / karellen-sqlite-0.0.3.tar.gz
| Download URL | karellen-sqlite-0.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36cb312b53740af3b1534aa4a472f3ad7a115434b4c1ad2df461ab713dc7f65f
|
|
BLAKE2b-256 checksum How to use checksums |
31144e414a9e5e316143faf2f729baa59df5b22788a16ca53a67016bad1b180f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / karellen_sqlite-0.0.3-py3-none-any.whl
| Download URL | karellen_sqlite-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
820032366d3e41204be3a19a6a418df8746bef8e6c8eebc90af328bdc4cf2bf3
|
|
BLAKE2b-256 checksum How to use checksums |
592961a858df088f7ad1a529633e929d1685cd96641b654622c35493dd254f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for karellen-sqlite 0.0.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.