Skip to main content

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 = 1
  • paramstyle = "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

dqlite_dbapi-0.1.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dqlite_dbapi-0.1.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file dqlite_dbapi-0.1.1.tar.gz.

File metadata

  • Download URL: dqlite_dbapi-0.1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dqlite_dbapi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d24b32a3a4b61bdd8b15da471b590a258752fa15ecbb826e5ce470fca1c5fde9
MD5 4756b72ccde2bcecd3d720eba766e558
BLAKE2b-256 ce3a30eef9edadd1c45bf1a838b8f41e665f93e86059ec7405ea9a34f9e57179

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqlite_dbapi-0.1.1.tar.gz:

Publisher: publish-to-pypi.yml on letsdiscodev/python-dqlite-dbapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dqlite_dbapi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dqlite_dbapi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dqlite_dbapi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f3721940c60cf959f2188fda92b86434b0ecb15fc18a1feaf080150ba69b58
MD5 0dfb489898400949006a3b6a0c92ea10
BLAKE2b-256 691f8c3c437ff765c3e07ee33292579b41eb3d4c184aa80b868179947b8e7f5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqlite_dbapi-0.1.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on letsdiscodev/python-dqlite-dbapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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