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.3.tar.gz (10.5 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.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dqlite_dbapi-0.1.3.tar.gz
  • Upload date:
  • Size: 10.5 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.3.tar.gz
Algorithm Hash digest
SHA256 5ac72d5b9421c889ef7e5f4990301c27abb0e21cfb2ad89321f734be141e320e
MD5 1741cddb9aad4407c253e918a3100571
BLAKE2b-256 3dc11094963bf53feb3add9aa6acfb8ee33ca637b40220146df84953532c5405

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: dqlite_dbapi-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49adcddff5fe6b81d1acea6e1f4e7e8bc5c263e94461e0079ea591d7c0c3ad94
MD5 eacbfeeef64e1828d8ca1a3294ac8380
BLAKE2b-256 6434ec4fd455fb90c21ec2bcf554fa8ee7b87aaced6cbec7b042a95e6e299557

See more details on using hashes here.

Provenance

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