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__":
    logging.basicConfig(level=logging.INFO)
    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.2.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.2-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: redpanda_connect-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8b7fd0dd57431bf4daa17ce48f6eb6cc1976a4efff20a52fdf7e29572eef4a9a
MD5 1591b943b478957996a34d2a9ef13d36
BLAKE2b-256 17c5cc2c5ae92c1d21c0949390c12592746fb2d2d6a23c35c810bd77e06d86e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redpanda_connect-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8be28f5a144cd49ef322e876f1f7e18c9399af5c9d6e4f3d38bb3210fe98fdc1
MD5 01947887198b9ce1334c6a580cb4a2bd
BLAKE2b-256 1dcc878b89a3f39d844643989e31fbad2e83d5d23568e4e08b551838775ec81f

See more details on using hashes here.

Provenance

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