PEP 249 (DB-API 2.0) compliant interface for dqlite
Project description
dqlite-dbapi
PEP 249 compliant interface for dqlite.
Installation
pip install dqlite-dbapi
Sync Usage
import dqlitedbapi
conn = dqlitedbapi.connect("localhost:9001")
cursor = conn.cursor()
cursor.execute("SELECT 1")
print(cursor.fetchone())
conn.close()
Async Usage
import asyncio
from dqlitedbapi.aio import aconnect
async def main():
conn = await aconnect("localhost:9001")
cursor = await conn.cursor()
await cursor.execute("SELECT 1")
print(await cursor.fetchone())
await conn.close()
asyncio.run(main())
PEP 249 Compliance
apilevel = "2.0"threadsafety = 1paramstyle = "qmark"
Development
See DEVELOPMENT.md for setup and contribution guidelines.
License
MIT
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
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 dqlite_dbapi-0.1.2.tar.gz.
File metadata
- Download URL: dqlite_dbapi-0.1.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
427b4e4d487052bbeca603ff11180d6fc39b51fa3432ce03bfe6503d90b54473
|
|
| MD5 |
f339b04448435839a34a6602bf38c4b9
|
|
| BLAKE2b-256 |
d6b18b7acd9615757d50d346e8d009e1afab08399fef5c9450806a89274b19d9
|
Provenance
The following attestation bundles were made for dqlite_dbapi-0.1.2.tar.gz:
Publisher:
publish-to-pypi.yml on letsdiscodev/python-dqlite-dbapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dqlite_dbapi-0.1.2.tar.gz -
Subject digest:
427b4e4d487052bbeca603ff11180d6fc39b51fa3432ce03bfe6503d90b54473 - Sigstore transparency entry: 869107683
- Sigstore integration time:
-
Permalink:
letsdiscodev/python-dqlite-dbapi@f4aac906b2e4aa2cd606c0919e2fc44254228ff9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/letsdiscodev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f4aac906b2e4aa2cd606c0919e2fc44254228ff9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dqlite_dbapi-0.1.2-py3-none-any.whl.
File metadata
- Download URL: dqlite_dbapi-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dd8b9407635e15733563bf0a704c680bc0a496a11cf7d0d1e005cf00292b0f7
|
|
| MD5 |
ce33852635862d00f6e5092b03b58563
|
|
| BLAKE2b-256 |
4dcc5bedb59927fbab2f726e576fffc54dc4e1b3c99b11bf409f76748e2d27c8
|
Provenance
The following attestation bundles were made for dqlite_dbapi-0.1.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on letsdiscodev/python-dqlite-dbapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dqlite_dbapi-0.1.2-py3-none-any.whl -
Subject digest:
5dd8b9407635e15733563bf0a704c680bc0a496a11cf7d0d1e005cf00292b0f7 - Sigstore transparency entry: 869107716
- Sigstore integration time:
-
Permalink:
letsdiscodev/python-dqlite-dbapi@f4aac906b2e4aa2cd606c0919e2fc44254228ff9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/letsdiscodev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f4aac906b2e4aa2cd606c0919e2fc44254228ff9 -
Trigger Event:
push
-
Statement type: