Skip to main content

A single process, in-memory message queue written in python.

Project description

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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skarv-0.3.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file skarv-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: skarv-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skarv-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9408ec60841d04e9e88d0d9fb32b3e1edcedc1f1bb09f6527bca5efe6fc08e21
MD5 b0d8351c6b671939944e76302df86756
BLAKE2b-256 b2927d125192e629e382c133c304d0e409f8f50a9c395064ac20b32eeda0f314

See more details on using hashes here.

Provenance

The following attestation bundles were made for skarv-0.3.0-py3-none-any.whl:

Publisher: release.yml on freol35241/skarv

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