TwainMQ
TwainMQ is a lightweight, file‑based message log inspired by Kafka’s design principles but without the operational overhead of running a broker or cluster. It provides durable, append‑only topics, partitioned message streams, consumer groups with load balancing, and offset managemen, all without using a central service or broker.
TwainMQ is designed for:
- local development workflows
- embedded systems
- single‑machine (or small local network) data pipelines
- teaching and experimentation with log‑based messaging
- applications that need Kafka‑like semantics without a server
It requires no services, no central authority, just a directory where the files will live. All coordination is done via the log files.
Features
- No running services or brokers, just an API and distributed self-organisation
- File‑based topics stored as append‑only logs
- Partitions for parallelism and ordering guarantees
- Consumer groups with automatic load balancing
- Offset tracking and commits
- Typed messages (supports dataclasses)
- Simple API for producers and consumers
Documentation
Full documentation is available at:
https://blueraven314.github.io/TwainMQ/
Why “TwainMQ”?
Kafka messaging is powerful, but it’s also famously complex and sometimes hard going, rather like reading Franz Kafka. Mark Twain, on the other hand, is known for clarity and accessibility. TwainMQ takes inspiration from Kafka’s log‑based design, but aims to be simple, easy to use, and friendly to work with.
Metadata
Release files for twainmq 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twainmq-0.3.1.tar.gz | 19.5 kB | With provenance | Details for twainmq-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twainmq-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for twainmq-0.3.1-py3-none-any.whl |
Total release size: 40.9 kB
Release files / twainmq-0.3.1.tar.gz
| Download URL | twainmq-0.3.1.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb28c9f473dae772bb74a3056ba6c73e2784cbc0f84b81916f787bfc92cd3c1a
|
|
BLAKE2b-256 checksum How to use checksums |
16029fe939c8a2ae4e6a0d05efe852f7116487baac6b659ad13937bbbd7f3f69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / twainmq-0.3.1-py3-none-any.whl
| Download URL | twainmq-0.3.1-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b8d1952f10829a1500855a510266d6abd0b4ea221aa32e2e05ce3a2c09c7773
|
|
BLAKE2b-256 checksum How to use checksums |
1776c19465c3d7ed0576348171fb9a1cad49ceb050e3381c54144eca7d61b85f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for twainmq 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for twainmq-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.