BytewaxRedis
Redis connector for Bytewax.
This connectors offers 2 sinks and 1 source:
RedisKVSink: A dynamic sink that writes key-value pairs to a Redis instance.RedisStreamSink: A dynamic sink that writes key-value dicts to the specifid Redis stream.RedisStreamSource: A fixed partitioned source that reads data from a list of Redis streams.
Usage
See examples for how to use sinks and sources.
Setting up the project for development
Install just
We use just as a command runner for
actions / recipes related to developing Bytewax. Please follow the
installation
instructions.
There's probably a package for your OS already.
Install pyenv and Python 3.12
I suggest using pyenv
to manage python versions.
the installation instructions.
You can also use your OS's package manager to get access to different Python versions.
Ensure that you have Python 3.12 installed and available as a "global
shim" so that it can be run anywhere. The following will make plain
python run your OS-wide interpreter, but will make 3.12 available
via python3.12.
$ pyenv global system 3.12
Install uv
We use uv as a virtual
environment creator, package installer, and dependency pin-er. There
are a few different ways to install
it,
but I recommend installing it through either
brew on macOS or
pipx.
Install just
We use just as a command runner for
actions / recipes related to developing Bytewax. Please follow the
installation
instructions.
There's probably a package for your OS already.
Development
We have a just recipe that will:
-
Set up a venv in
venvs/dev/. -
Install all dependencies into it in a reproducible way.
Start by adding any dependencies that are needed into pyproject.toml or into requirements/dev.in if they are needed for development.
Next, generate the pinned set of dependencies with
> just venv-compile-all
Create and activate a virtual environment
Once you have compiled your dependencies, run the following:
> just get-started
Activate your development environment and run the development task:
> . venvs/dev/bin/activate
> just develop
License
bytewax-redis is commercially licensed with
publicly available source code. You are welcome to prototype using
this module for free, but any use on business data requires a paid
license. See https://modules.bytewax.io/ for a license. Please see the
full details in LICENSE.
Metadata
Release files for bytewax-redis 0.1
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 |
|---|---|---|---|---|
| bytewax_redis-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / bytewax_redis-0.1-py3-none-any.whl
| Download URL | bytewax_redis-0.1-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84436f8a71defbb047c5d72ddad3536413befc9a71e86b571c878d75edb086ac
|
|
BLAKE2b-256 checksum How to use checksums |
a5b936abea796c1297b1ee21460f9a088a712cf34f527a55031609d727009f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|