Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arkitekt-fastapi 2.0.2
File Size Uploaded
arkitekt_fastapi-2.0.2.tar.gz 43.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arkitekt-fastapi 2.0.2
File Interpreter ABI Platform
arkitekt_fastapi-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 99.6 kB

Release files / arkitekt_fastapi-2.0.2.tar.gz

Download URL arkitekt_fastapi-2.0.2.tar.gz
Size 43.5 kB
Tags Source
SHA-256 checksum
How to use checksums
77794f7a60d75709440c238bd9daaeb1cabd1d614ddddf52fe99871000d2521f
BLAKE2b-256 checksum
How to use checksums
46aec977429c5446515a62f96468965faf45600af70a513c51a73db182229a7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.2-py3-none-any.whl

Download URL arkitekt_fastapi-2.0.2-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d825734bde9dd44e0bb6c3782fd4435e767edae69fc2450d6caa90d2c748cf6a
BLAKE2b-256 checksum
How to use checksums
ccee36294256dccbf56bb0df73755835b91c645953a4009fa67651f1b00d3caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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 history Release notifications | RSS feed

2.1.0

2 release files

This release

2.0.2 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page