AMGI Kafka Server
Project description
amgi-aiokafka
amgi-aiokafka is an AMGI compatible server to run AMGI applications against Kafka.
Installation
pip install amgi-aiokafka==0.29.0
Example
This example uses AsyncFast:
from dataclasses import dataclass
from amgi_aiokafka import run
from asyncfast import AsyncFast
app = AsyncFast()
@dataclass
class Order:
item_ids: list[str]
@app.channel("order-topic")
async def order_topic(order: Order) -> None:
# Makes an order
...
if __name__ == "__main__":
run(app, "order-topic")
Or the application could be run via the commandline:
asyncfast run amgi-aiokafka main:app order-topic
Contact
For questions or suggestions, please contact jack.burridge@mail.com.
License
Copyright 2025 AMGI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
amgi_aiokafka-0.29.0.tar.gz
(3.7 kB
view details)
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 amgi_aiokafka-0.29.0.tar.gz.
File metadata
- Download URL: amgi_aiokafka-0.29.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea9887bf219829d54c14d42a00e83d68034c244a87139fd11af6cba63dba6f29
|
|
| MD5 |
51677fa6c73f7aedfcd0ec22c26b3bc7
|
|
| BLAKE2b-256 |
c4d3653755ea42c24c30d749eba2ba8c9c20397eeb555e622f42d0c8662ff105
|
File details
Details for the file amgi_aiokafka-0.29.0-py3-none-any.whl.
File metadata
- Download URL: amgi_aiokafka-0.29.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a63c7056eaeb17b12cc67cafb26972bb938fce2a70afdd340a50c47e552425
|
|
| MD5 |
89fee486720591dd2e9b2211c3ab1520
|
|
| BLAKE2b-256 |
73680cb2d94202714eda3ff45f3d124108316a081c45ae11d929549c134505b3
|