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.0.tar.gz (9.6 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.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dqlite_dbapi-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 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.0.tar.gz
Algorithm Hash digest
SHA256 a553b3df627f90b8af51f530d98f2a1894b27d1c1c7a18732fa2a88ea82b0850
MD5 6478032cb9dcaa764f6093a569bf08b3
BLAKE2b-256 eeb11a52258a3db494b89ef7d44393a197e25770fe6b2c0a1c14eb2a30904ccd

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqlite_dbapi-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: dqlite_dbapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15ebc8c7994c6122ee5d5e29b910b78cf62529af123c5336911cf4d07f00e399
MD5 6a9cb8f4fcec435a2f1e69511a480987
BLAKE2b-256 3b85c2c22f1d2bd8a57c6893968f0f23e4b1e9a1d0c97cd78d2aa871c0b3c30b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqlite_dbapi-0.1.0-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