Pre-release
This release is a pre-release and may not be stable for production use.
Swarmauri Transport ? ASGI Server
swarmauri-transport-asgi boots an in-process Uvicorn server so transports can expose ASGI applications without leaving the Swarmauri runtime. Use it when you need to mount FastAPI, Starlette, or other ASGI-compatible apps alongside agents.
Installation
Using uv
uv pip install swarmauri-transport-asgi --index-url https://pypi.org/simple
Using pip
pip install swarmauri-transport-asgi
Usage
import asyncio
from fastapi import FastAPI
from swarmauri_transport_asgi import ASGITransport
api = FastAPI()
@api.get("/ping")
async def ping() -> dict[str, str]:
return {"message": "pong"}
async def main() -> None:
transport = ASGITransport(app=api)
async with transport.server(host="0.0.0.0", port=8000):
await asyncio.Event().wait()
asyncio.run(main())
Configure Uvicorn parameters such as TLS context or worker count through the server(...) context manager arguments.
Metadata
Release files for swarmauri_transport_asgi 0.11.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_transport_asgi-0.11.0.dev1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_transport_asgi-0.11.0.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / swarmauri_transport_asgi-0.11.0.dev1.tar.gz
| Download URL | swarmauri_transport_asgi-0.11.0.dev1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5818a2c42478bce174b1719f5464332b10e5bda52fe0f171b433e0c2c8002268
|
|
BLAKE2b-256 checksum How to use checksums |
bae0c8b1a4763a14769404175467fae8bebf7f9c5458602993ffbdae458094d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| 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}
|
Release files / swarmauri_transport_asgi-0.11.0.dev1-py3-none-any.whl
| Download URL | swarmauri_transport_asgi-0.11.0.dev1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d1758228e3e8a46cf663168aad778cf9b40df71d87bc3e88967b34bf55932a8
|
|
BLAKE2b-256 checksum How to use checksums |
dba3cec9775ba96d3b5e600022c136abbb9aedb21d15ac76d1bdcad8f64561e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| 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}
|