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.

Assets

The files an app registers with register_asset are served by the name its bloks call them by (@self.assets.<name>):

  • GET /schemas/assets lists them as they are declared: name, kind, reference, and the size or the source.
  • GET /assets/<name> is the file, with its reference as the ETag (If-None-Match answers 304). An asset registered with a source is not held by the app: the route redirects (307) to that source and fetches nothing.

A file that changed on disk since it was registered is refused with 409, since a reader checks the bytes against the reference. Like the schema routes, the asset routes ask for no user. configure_fastapi(..., add_assets=False) leaves them out; assets_path= moves them.

AsyncAgentTestClient drives a served app in tests without a network.

Metadata

Release files for arkitekt-fastapi 4.1.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 4.1.0
File Size Uploaded Provenance Actions
arkitekt_fastapi-4.1.0.tar.gz 46.1 kB Without provenance Details for arkitekt_fastapi-4.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 105.6 kB

Release files / arkitekt_fastapi-4.1.0.tar.gz

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

Download URL arkitekt_fastapi-4.1.0-py3-none-any.whl
Size 59.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f75a07ab7c0cb64f534a29e48df204987a5b20e860873d12f9c135126650e8f1
BLAKE2b-256 checksum
How to use checksums
178c1b0038c0ddb6f97aa31386e9c4252bdb7285d92280c508830770388ce74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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}

Security for arkitekt-fastapi 4.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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