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

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.1
File Size Uploaded
arkitekt_fastapi-2.0.1.tar.gz 43.5 kB Details

Built distribution (wheel)

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

Total release size: 99.6 kB

Release files / arkitekt_fastapi-2.0.1.tar.gz

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

Download URL arkitekt_fastapi-2.0.1-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9edf65e23a684bc8ab29697403beaf971a4b08dbe8308726adde341987bdabe7
BLAKE2b-256 checksum
How to use checksums
dbd72daeebabcd4fa9b9669e08cb7d5fd2bc90ac45fbb5feb86680356c732f97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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

This release

2.0.1 This release

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