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 logging
import redpanda_connect


@redpanda_connect.processor
def yell(msg: redpanda_connect.Message) -> redpanda_connect.Message:
    msg.payload = msg.payload.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-plugins=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.3.tar.gz (40.9 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.3-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: redpanda_connect-0.1.3.tar.gz
  • Upload date:
  • Size: 40.9 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.3.tar.gz
Algorithm Hash digest
SHA256 cad839a8376f793deb2882e033c4f7ff39eb56b4787ef55e91bc9bac2ddc607c
MD5 cdbb583156360b1f4897a5d08ef1b598
BLAKE2b-256 ca53c74f8b16312d41e5bc40b24bced5977a7b805ef4be31aa07374cc77349f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for redpanda_connect-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for redpanda_connect-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc98c6d79aee85d45d89d4d8e4d35b34086f5b0fa8ebffb297be38fb716a326f
MD5 c93babb25ce7804e80e87d44aa99f8ae
BLAKE2b-256 328e19d757070a685a0e594569595ecc7cd590e2ce4d6864732340b6dae93976

See more details on using hashes here.

Provenance

The following attestation bundles were made for redpanda_connect-0.1.3-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