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/assetslists them as they are declared: name, kind, reference, and the size or the source.GET /assets/<name>is the file, with its reference as theETag(If-None-Matchanswers 304). An asset registered with asourceis 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arkitekt_fastapi-4.1.1.tar.gz | 46.1 kB | Without provenance | Details for arkitekt_fastapi-4.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arkitekt_fastapi-4.1.1-py3-none-any.whl | Python 3 | none | any | Details for arkitekt_fastapi-4.1.1-py3-none-any.whl |
Total release size: 105.8 kB
Release files / arkitekt_fastapi-4.1.1.tar.gz
| Download URL | arkitekt_fastapi-4.1.1.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
181f0bf96889e0762ea6102675a00e7a14b4d592b217638323ab19a36330b432
|
|
BLAKE2b-256 checksum How to use checksums |
4d70d502d2116d221a832b0408a1eb5a53ae9467d069546f25ca642250781791
|
| 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":"26.04","id":"resolute","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.1-py3-none-any.whl
| Download URL | arkitekt_fastapi-4.1.1-py3-none-any.whl |
|---|---|
| Size | 59.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93fe4feddb65aacf7de78f6ff4ee20769788df7977bff05983664d43ce47a6b4
|
|
BLAKE2b-256 checksum How to use checksums |
7ad8fd13c864396f433ad16cb248262af4e639224498a5af7036fdfdc77a8b99
|
| 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":"26.04","id":"resolute","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.1
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.