Skip to main content

AMGI aio-pika AMQP Server

Project description

amgi-aio-pika

amgi-aio-pika is an AMGI compatible server to run AMGI applications against AMQP (RabbitMQ) using aio-pika.

Installation

pip install amgi-aio-pika==0.45.0

Example

This example uses AsyncFast:

from dataclasses import dataclass

from amgi_aio_pika import run
from asyncfast import AsyncFast

app = AsyncFast()


@dataclass
class Order:
    item_ids: list[str]


@app.channel("order-queue")
async def order_queue(order: Order) -> None:
    # Makes an order
    ...


if __name__ == "__main__":
    run(app, "order-queue")

Or the application could be run via the commandline:

asyncfast run amgi-aio-pika main:app order-queue

Contact

For questions or suggestions, please contact jack.burridge@mail.com.

License

Copyright 2025 AMGI

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

amgi_aio_pika-0.45.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

amgi_aio_pika-0.45.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file amgi_aio_pika-0.45.0.tar.gz.

File metadata

  • Download URL: amgi_aio_pika-0.45.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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

Hashes for amgi_aio_pika-0.45.0.tar.gz
Algorithm Hash digest
SHA256 1caced3e77fd75c36236e0d8ab93ed17d9836586bdd2e159180806acb19c7e4b
MD5 d4c3ac2f5d74e5070aa19368be19aba0
BLAKE2b-256 93d0814e5c3592e0ef73c8f9a33492fa903039319b5b09eeea044b6897f5f0dd

See more details on using hashes here.

File details

Details for the file amgi_aio_pika-0.45.0-py3-none-any.whl.

File metadata

  • Download URL: amgi_aio_pika-0.45.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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

Hashes for amgi_aio_pika-0.45.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58e85bebc162506fc269a7a3469a8ad97ae602ddf39b652677a094b2b477f0aa
MD5 33de66fe4c3c6beead63f184555ee5af
BLAKE2b-256 9a3f0100eb8609fa8acab2a5615e68ffb17a925601745a54f9193aab0832ceaa

See more details on using hashes here.

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