This release is a pre-release and may not be stable for production use.
pymizu
Single-producer single-consumer channels for Python: a bounded ring buffer with optional timeouts on receives and sentinel return values for full, timeout, and closed states. The transport is in-process.
Installation
pip install pymizu
Usage
import pymizu
ch = pymizu.inproc_channel(2)
ch.send("a")
ch.send(42)
ch.send("b") # full: returns the pymizu.FULL sentinel
ch.recv()
# 'a'
ch.recv()
# 42
ch.recv(timeout=0) # empty: do not wait
# <pymizu.TIMEOUT>
ch.close()
timeout is in seconds on a monotonic clock: None (the default) and
math.inf wait indefinitely, and 0 polls. The buffer is
lock-guarded, so a producer thread and a consumer thread may exchange
values without an external lock.
Terminal states surface as sentinel singletons, not exceptions:
pymizu.FULL, pymizu.TIMEOUT, and pymizu.CLOSED.
pymizu.is_sentinel(x) is an identity test for use where payloads are
untrusted.
License
MIT
Metadata
Release files for pymizu 0.0.1.dev0
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 | |
|---|---|---|---|---|
| pymizu-0.0.1.dev0.tar.gz | 5.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymizu-0.0.1.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / pymizu-0.0.1.dev0.tar.gz
| Download URL | pymizu-0.0.1.dev0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3063fe406a58af5003d5d635b4efce7b120550c9b0fb41907c4bbd84fd8cd26c
|
|
BLAKE2b-256 checksum How to use checksums |
e893fa781168e1eaa0d9661060009261bc8c16a6bf22bfe25482770cab5c1160
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / pymizu-0.0.1.dev0-py3-none-any.whl
| Download URL | pymizu-0.0.1.dev0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b708399c6e66fa63272529d09a34f5e22b7b67769ea948d000557a44c131ccbb
|
|
BLAKE2b-256 checksum How to use checksums |
52c288764b38c21effa3f01a419fb776295aaa621c03f1a7d67ff8a641e02760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Security for pymizu 0.0.1.dev0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.