arkitekt-fastapi
Server mode for an Arkitekt app: serve an app declared with arkitekt-spec as an HTTP service.
from fastapi import FastAPI
from arkitekt_fastapi import configure_fastapi
app = FastAPI()
configure_fastapi(app=app, app_registry=registry, db_file="journal.db")
Every declared action becomes a route with an OpenAPI schema generated from its ports; states, locks, tasks and the journal are served alongside. It runs actions on arkitekt-runtime's execution core, the same one rekuest's distributed agent uses, but with an in-process transport: no websockets, no rath, no rekuest server.
A served app registers with no one and so cannot call other actions: Task.call raises
NoCallerError at once.
AsyncAgentTestClient drives a served app in tests without a network.
Metadata
Release files for arkitekt-fastapi 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arkitekt_fastapi-2.0.0.tar.gz | 43.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arkitekt_fastapi-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.5 kB
Release files / arkitekt_fastapi-2.0.0.tar.gz
| Download URL | arkitekt_fastapi-2.0.0.tar.gz |
|---|---|
| Size | 43.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b72031e602e886cf138e994b5a3535f35ebd4f25bd981ea3f8fd767248ac0b8e
|
|
BLAKE2b-256 checksum How to use checksums |
d261af3da280bb478ed6c210d76c6c98ff7327c63edcffbd8cded8a767056c4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.20 {"installer":{"name":"uv","version":"0.12.20","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 / arkitekt_fastapi-2.0.0-py3-none-any.whl
| Download URL | arkitekt_fastapi-2.0.0-py3-none-any.whl |
|---|---|
| Size | 56.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25efa7cbd20315f79d6aaadaa8b21040217f715864eab65949206cd3930349f2
|
|
BLAKE2b-256 checksum How to use checksums |
f52fdc83e4134ebf4207152c42d02f2c0d729da3c8f5808c2ebd5785c5c7f97c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.20 {"installer":{"name":"uv","version":"0.12.20","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}
|