A DB-API 2.0 style interface for SQLite databases.
Project description
SQLite7
SQLite7 is a DB-API 2.0 style interface for SQLite databases backed directly by the SQLite C library, with both synchronous and asynchronous APIs.
Installation
pip install sqlite7
Requires: Python 3.11+
Quick Example
from sqlite7 import connect
with open_db(":memory:") as db:
db.script(
'''
CREATE TABLE users (
id INTEGER PRIMARY KEY,
email TEXT UNIQUE NOT NULL,
name TEXT NOT NULL,
age INTEGER NOT NULL
);
'''
)
users = db.table("users")
users.insert({"email": "ada@example.com", "name": "Ada", "age": 36})
users.insert({"email": "grace@example.com", "name": "Grace", "age": 37})
rows = users.select(
columns=["id", "name"],
where="age >= ?",
params=[36],
order_by="id ASC",
limit=10,
offset=0,
)
print(rows)
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlite7-1.0.0.tar.gz.
File metadata
- Download URL: sqlite7-1.0.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70c1990d57cb753b310e564fc4092f3efa80a5b026ac9b17b7b5535582618932
|
|
| MD5 |
eb4e7d5a9f24b6c5762ff439b489393e
|
|
| BLAKE2b-256 |
d527a6bfe1d6a58279f91d53a440e332e2545e4ff3eca8f94452c2abc87dfa8f
|
Provenance
The following attestation bundles were made for sqlite7-1.0.0.tar.gz:
Publisher:
python-publish.yml on joumaico/sqlite7
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite7-1.0.0.tar.gz -
Subject digest:
70c1990d57cb753b310e564fc4092f3efa80a5b026ac9b17b7b5535582618932 - Sigstore transparency entry: 1262695873
- Sigstore integration time:
-
Permalink:
joumaico/sqlite7@6726f3dfd9d8687c4c1461d024d75ab0e0ad6948 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/joumaico
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6726f3dfd9d8687c4c1461d024d75ab0e0ad6948 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sqlite7-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sqlite7-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26b184b4668a3c929073c6408b479a3561a0d12367320102718197cdd4a475bf
|
|
| MD5 |
3537b7f5970ddc3a07e0b60d0e3bc6d1
|
|
| BLAKE2b-256 |
1fe10d474d43363ab9121ec36e4f6a829cfa08ad8c2422059534607c3ef48dc3
|
Provenance
The following attestation bundles were made for sqlite7-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on joumaico/sqlite7
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite7-1.0.0-py3-none-any.whl -
Subject digest:
26b184b4668a3c929073c6408b479a3561a0d12367320102718197cdd4a475bf - Sigstore transparency entry: 1262695899
- Sigstore integration time:
-
Permalink:
joumaico/sqlite7@6726f3dfd9d8687c4c1461d024d75ab0e0ad6948 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/joumaico
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6726f3dfd9d8687c4c1461d024d75ab0e0ad6948 -
Trigger Event:
release
-
Statement type: