Skip to main content

Actions Status PyPI Bytewax User Guide

Bytewax

Bytewax InfluxDB Connector

A source and sink connector for Bytewax.

You will need an influxdb account and the API key to use the connector.

To test the connector, use examples/input.py and examples/output.py. You may need to modify the date parameters for it to work.

To use the source and sink connector use them in the input and output operators like shown below.

inp = op.input(
    "inp",
    flow,
    InfluxDBSource(
        timedelta(seconds=5),
        "https://us-east-1-1.aws.cloud2.influxdata.com",
        DATABASE,
        TOKEN,
        "home",
        ORG,
        datetime.now(timezone.utc) - timedelta(days=5),
    ),
)
op.output(
    "out",
    inp,
    InfluxDBSink(
        host="https://us-east-1-1.aws.cloud2.influxdata.com",
        database=DATABASE,
        org=ORG,
        token=TOKEN,
        write_precision="s",
    ),
)

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:

  1. Set up a venv in venvs/dev/.

  2. 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 InfluxDB Connector is commercially licensed with publicly available source code. Please see the full details in LICENSE.

Metadata

Release files for bytewax-influxdb 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for bytewax-influxdb 0.1
File Interpreter ABI Platform
bytewax_influxdb-0.1-py3-none-any.whl Python 3 none any Details

Release files / bytewax_influxdb-0.1-py3-none-any.whl

Download URL bytewax_influxdb-0.1-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f13fa5681eb5e5c18fba0dd7a0ac33f9202a16decb8a01e1b834e0d97689e90
BLAKE2b-256 checksum
How to use checksums
6218c8ffe0722d079b2f37f2adfb0e6384d35f4f47b291d7a44152ff3afeef97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page