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 3.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 3.0.0
File Size Uploaded Provenance Actions
arkitekt_fastapi-3.0.0.tar.gz 45.6 kB Without provenance Details for arkitekt_fastapi-3.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 104.3 kB

Release files / arkitekt_fastapi-3.0.0.tar.gz

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

Download URL arkitekt_fastapi-3.0.0-py3-none-any.whl
Size 58.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6401d23d0b62a9c33bc1df72d3276fe1dd6bc51712ff842119ffc371a779015e
BLAKE2b-256 checksum
How to use checksums
061ccd472c3144f56c1c5bb1668038ee6537af3f1bf539a7e50ccd335372272b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 3.0.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