skarv
skarv is a Swedish noun that refers to the point where two things are joined together. Translations to English includes joint, splice, connection and similar words. Interestingly, it is also the swedish word for cormorant (the bird).
What?
A simple, synchronous, thread-safe, single process, in-memory message "broker" written in python.
Why?
Because I wanted the most simplistic API (subjectively) I could possibly think of for processing real-time data from multiple sources to multiple sinks via any intermediate processing setup.
How ?
By re-using the concept of Key Expressions from Zenoh and utilizing in-memory storage for a very simplistic implementation of a message "broker" that supports the following operations:
- Putting data to the broker
- Subscribing to data from the broker
- Getting the latest data from the broker
Usage
Docs are available at https://freol35241.github.io/skarv
import skarv
@skarv.subscribe("any/**")
def _(sample: skarv.Sample):
print(sample.key_expr)
print(sample.value)
skarv.put("any/thing", 42)
samples = skarv.get("any/**")
print(samples)
Installation
pip install skarv
License
Apache 2.0 - see LICENSE file for details.
Release files for skarv 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skarv-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / skarv-0.3.0-py3-none-any.whl
| Download URL | skarv-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9408ec60841d04e9e88d0d9fb32b3e1edcedc1f1bb09f6527bca5efe6fc08e21
|
|
BLAKE2b-256 checksum How to use checksums |
b2927d125192e629e382c133c304d0e409f8f50a9c395064ac20b32eeda0f314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Nov 6, 2025.
Transparency log