Skip to main content

dqlite-wire

Pure-Python codec for the dqlite wire protocol — encode and decode the messages a dqlite server speaks.

dqlite is Canonical's distributed SQLite, built on Raft. This package implements the bytes-on-the-wire layer: it turns request/response objects into frames and back, following the official wire-protocol specification. It does no networking, pooling, or SQL — just framing.

Is this the package you want?

Probably not, unless you are building a driver or doing wire-level work (a proxy, traffic capture/replay, a custom client). If you just want to run SQL against dqlite from Python, use one of the higher layers — see The dqlite Python stack below.

Installation

pip install dqlite-wire

Requires Python 3.13+.

Usage

from dqlitewire import encode_message, decode_message
from dqlitewire.messages import LeaderRequest

# Encode a request to bytes
data = encode_message(LeaderRequest())

# Decode bytes back into a message object
message = decode_message(data, is_request=True)

The dqlite Python stack

This is the lowest of four layered packages. Each builds on the one below:

Package Role
sqlalchemy-dqlite SQLAlchemy 2.0 dialect
dqlite-dbapi PEP 249 (DB-API 2.0) driver — sync & async
dqlite-client Async wire client — pooling, leader discovery
dqlite-wire — this package Wire-protocol codec

Most applications should use dqlite-dbapi or sqlalchemy-dqlite.

Documentation

Development

See DEVELOPMENT.md for setup and contribution guidelines.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dqlite_wire-0.7.0.tar.gz (242.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_wire-0.7.0-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file dqlite_wire-0.7.0.tar.gz.

File metadata

  • Download URL: dqlite_wire-0.7.0.tar.gz
  • Upload date:
  • Size: 242.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dqlite_wire-0.7.0.tar.gz
Algorithm Hash digest
SHA256 cd74a6b40aa001003a8b5d817c648ed01d8bf3a19f699451a13920577224c1d0
MD5 6cd6e68b4fc3fcf4fa9fa6b07b854c83
BLAKE2b-256 d3b4c28ae0a260acb3f8bd21ced70eb3c95e0093e5472381a16083a4bb0e6ecb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqlite_wire-0.7.0.tar.gz:

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

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_wire-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: dqlite_wire-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 59.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dqlite_wire-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 221dc202d84ad5e087dbfe1f998f2aad14e1613659290bb8a477d3b401001e2e
MD5 01a47317b5a26de3145e21fee5afa436
BLAKE2b-256 93b13076e31a5d5325d6741446565303a1f37ab67c037bb4a6802d1dcb50ca75

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqlite_wire-0.7.0-py3-none-any.whl:

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

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

Release history Release notifications | RSS feed

0.8.0

2 files

This release

0.7.0 This release

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page