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.2.tar.gz (10.4 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.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

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

Hashes for dqlite_dbapi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 427b4e4d487052bbeca603ff11180d6fc39b51fa3432ce03bfe6503d90b54473
MD5 f339b04448435839a34a6602bf38c4b9
BLAKE2b-256 d6b18b7acd9615757d50d346e8d009e1afab08399fef5c9450806a89274b19d9

See more details on using hashes here.

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

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.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

Hashes for dqlite_dbapi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dd8b9407635e15733563bf0a704c680bc0a496a11cf7d0d1e005cf00292b0f7
MD5 ce33852635862d00f6e5092b03b58563
BLAKE2b-256 4dcc5bedb59927fbab2f726e576fffc54dc4e1b3c99b11bf409f76748e2d27c8

See more details on using hashes here.

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

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