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

Built distribution (wheel)

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

Total release size: 104.2 kB

Release files / arkitekt_fastapi-4.0.0.tar.gz

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

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