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 1.0.0

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

Built distribution (wheel)

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

Total release size: 99.5 kB

Release files / arkitekt_fastapi-1.0.0.tar.gz

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

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

2 release files

2.0.0

2 release files

This release

1.0.0 This release

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