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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b7fd0dd57431bf4daa17ce48f6eb6cc1976a4efff20a52fdf7e29572eef4a9a
|
|
| MD5 |
1591b943b478957996a34d2a9ef13d36
|
|
| BLAKE2b-256 |
17c5cc2c5ae92c1d21c0949390c12592746fb2d2d6a23c35c810bd77e06d86e9
|
Provenance
The following attestation bundles were made for redpanda_connect-0.1.2.tar.gz:
Publisher:
release_python_sdk.yaml on redpanda-data/connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redpanda_connect-0.1.2.tar.gz -
Subject digest:
8b7fd0dd57431bf4daa17ce48f6eb6cc1976a4efff20a52fdf7e29572eef4a9a - Sigstore transparency entry: 230629415
- Sigstore integration time:
-
Permalink:
redpanda-data/connect@4aaadba1db35b3d1b3d36df2c1a14a915145b62e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/redpanda-data
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_python_sdk.yaml@4aaadba1db35b3d1b3d36df2c1a14a915145b62e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file redpanda_connect-0.1.2-py3-none-any.whl.
File metadata
- Download URL: redpanda_connect-0.1.2-py3-none-any.whl
- Upload date:
- Size: 48.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be28f5a144cd49ef322e876f1f7e18c9399af5c9d6e4f3d38bb3210fe98fdc1
|
|
| MD5 |
01947887198b9ce1334c6a580cb4a2bd
|
|
| BLAKE2b-256 |
1dcc878b89a3f39d844643989e31fbad2e83d5d23568e4e08b551838775ec81f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redpanda_connect-0.1.2-py3-none-any.whl -
Subject digest:
8be28f5a144cd49ef322e876f1f7e18c9399af5c9d6e4f3d38bb3210fe98fdc1 - Sigstore transparency entry: 230629416
- Sigstore integration time:
-
Permalink:
redpanda-data/connect@4aaadba1db35b3d1b3d36df2c1a14a915145b62e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/redpanda-data
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_python_sdk.yaml@4aaadba1db35b3d1b3d36df2c1a14a915145b62e -
Trigger Event:
workflow_dispatch
-
Statement type: