Valkey connectors for Bytewax
Project description
Bytewax Lever
Valkey connectors for Bytewax.
This connector offers 1 source and 1 sink:
StreamSource- reads Valkey streams usingxreadPubSubSource- writes Valkey pubsub usingsubscribe
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.inputs.pubsub_source 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())
Stream Source
import os
from bytewax_valkey.inputs.stream_source 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())
License
Licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bytewax_valkey-0.1.0.tar.gz
(7.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bytewax_valkey-0.1.0.tar.gz.
File metadata
- Download URL: bytewax_valkey-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78ae87e4927f434b333eeaecf8ec8fc101a817d78fe56629e421a4f07e6654c2
|
|
| MD5 |
2e5fc662258a002a3270412a4b9d8448
|
|
| BLAKE2b-256 |
8b9e0a62962fc3bccad23ecc53f6b243f899168d07fe1d368648724e7c4cd9ac
|
File details
Details for the file bytewax_valkey-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bytewax_valkey-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a218719f9dcb256e6356e1eccb8a2e8b9bd4c64bc8213ae331d868887be357a9
|
|
| MD5 |
5b50e78a49d40443fae6aea8689dafec
|
|
| BLAKE2b-256 |
b066cbb3456feb276d77de00884ec4eee8a252584de7fd9c04f0a31c10dd38c4
|