Bytewax Valkey
Valkey connectors for Bytewax.
This connector offers 3 sources and 2 sinks:
StreamSink- writes Valkey streams usingxaddStreamSource- reads Valkey streams usingxreadPubSubSink- writes Valkey pubsub usingpublishPubSubSource- reads Valkey pubsub usingsubscribePubSubPatternSource- reads Valkey pubsub usingpsubscribe
Installation
This package is available via PyPi as
bytewax-valkey and can be installed via your package manager of choice.
Usage
Pub/Sub Source
import os
from bytewax_valkey import PubSubSource
from bytewax.connectors.stdio import StdOutSink
import bytewax.operators as op
from bytewax.dataflow import Dataflow
VALKEY_URL = os.environ["VALKEY_URL"]
flow = Dataflow("valkey_example")
flow_input = op.input("input", flow, PubSubSource.from_url(VALKEY_URL, "example"))
op.output("output", flow_input, StdOutSink())
Pub/Sub Pattern Source
import os
from bytewax_valkey import PubSubPatternSource
from bytewax.connectors.stdio import StdOutSink
import bytewax.operators as op
from bytewax.dataflow import Dataflow
VALKEY_URL = os.environ["VALKEY_URL"]
flow = Dataflow("valkey_example")
flow_input = op.input("input", flow, PubSubPatternSource.from_url(VALKEY_URL, "example*"))
op.output("output", flow_input, StdOutSink())
Pub/Sub Sink
import os
from bytewax_valkey import PubSubSink
from bytewax.testing import TestingSource
import bytewax.operators as op
from bytewax.dataflow import Dataflow
VALKEY_URL = os.environ["VALKEY_URL"]
flow = Dataflow("valkey_example")
flow_input = op.input("input", flow, TestingSource([b"example message"]))
op.output("output", flow_input, PubSubSink.from_url(VALKEY_URL, "example"))
Stream Source
import os
from bytewax_valkey import StreamSource
from bytewax.connectors.stdio import StdOutSink
import bytewax.operators as op
from bytewax.dataflow import Dataflow
VALKEY_URL = os.environ["VALKEY_URL"]
flow = Dataflow("valkey_example")
flow_input = op.input("input", flow, StreamSource.from_url(VALKEY_URL, "example"))
op.output("output", flow_input, StdOutSink())
Stream Sink
import os
from bytewax_valkey import StreamSink
from bytewax.testing import TestingSource
import bytewax.operators as op
from bytewax.dataflow import Dataflow
VALKEY_URL = os.environ["VALKEY_URL"]
flow = Dataflow("valkey_example")
flow_input = op.input("input", flow, TestingSource([{"key": "value"}]))
op.output("output", flow_input, StreamSink.from_url(VALKEY_URL, "example"))
License
Licensed under the MIT License.
Metadata
Release files for bytewax-valkey 0.3.0
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 |
|---|---|---|---|---|
| bytewax_valkey-0.3.0.tar.gz | 13.0 kB | Without provenance | Details for bytewax_valkey-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bytewax_valkey-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for bytewax_valkey-0.3.0-py3-none-any.whl |
Total release size: 20.5 kB
Release files / bytewax_valkey-0.3.0.tar.gz
| Download URL | bytewax_valkey-0.3.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c6f47b126e2c09590e6ad4e4cd8d3150e8422c785322009f45cc0c39859c821
|
|
BLAKE2b-256 checksum How to use checksums |
ab081610347d4071e36be58d84db0244de68827c688fb607689fff22a48bc9fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.18
|
Release files / bytewax_valkey-0.3.0-py3-none-any.whl
| Download URL | bytewax_valkey-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
352f30fb3da844ad05ba0d53a5c5b6ce1bddfa7d8f64a63c2346feb1b1e14dd2
|
|
BLAKE2b-256 checksum How to use checksums |
e6af31056ef83736c03c2147eee2aa07ba35f604f70f97b3a71b3cbb579edc2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.18
|
Security for bytewax-valkey 0.3.0
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.