Skip to main content

A library for writing Redpanda Connect plugins in Python

Project description

Redpanda Connect Python Plugins

This library allows you to create python plugins for Redpanda Connect.

In order to use create a processor plugin you can follow these steps:

uv init project

cd project

uv add redpanda_connect

cat <<EOF > main.py
import asyncio
import redpanda_connect


@redpanda_connect.processor
def yell(msg: redpanda_connect.Message) -> redpanda_connect.Message:
    msg.value = msg.value.upper()
    return msg

if __name__ == "__main__":
    asyncio.run(redpanda_connect.processor_main(yell))
EOF

cat <<EOF > plugin.yaml
name: foo
summary: Just the simplest example
command: ["uv", "run", "main.py"]
type: processor
fields: []
EOF

cat <<EOF > connect.yaml
pipeline:
  processors:
    - foo: {}
EOF

rpk connect run --rpc-plugin=plugin.yaml connect.yaml

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

redpanda_connect-0.1.1.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

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

redpanda_connect-0.1.1-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

Details for the file redpanda_connect-0.1.1.tar.gz.

File metadata

  • Download URL: redpanda_connect-0.1.1.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for redpanda_connect-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7417d96c61de628cb714daa35aa2df4d47c40fb9cef550b9af09563eb6f95702
MD5 647fd54ce782bb771263629039aa14a7
BLAKE2b-256 7eed2a5be6bf1b5496fee518c157b9cfb1e7015a1280716c76c4a6cc4c4ddb9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for redpanda_connect-0.1.1.tar.gz:

Publisher: release_python_sdk.yaml on redpanda-data/connect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redpanda_connect-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for redpanda_connect-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24847f7f7b8ba1bc4ac8c817ca91daa26bb763975c56492751bb94e8d4f04259
MD5 b824077edadf3e33f6a3cdb67941dd44
BLAKE2b-256 6da31796546d476c703cfc1f099a143b12ad8f39f8fd839c5b53cc20b6026f9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for redpanda_connect-0.1.1-py3-none-any.whl:

Publisher: release_python_sdk.yaml on redpanda-data/connect

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