Skip to main content

fjkit-apidocs

An API reference and in-process console for FastAPI, in place of Swagger UI. A fjkit plugin — server-rendered macros, htmx swaps, no build step.

uv add fjkit-apidocs
from fastapi import FastAPI
from fjkit import FjkitConfig, mount_fjkit
from fjkit_apidocs import ApiDocsPlugin

app = FastAPI(docs_url=None, redoc_url=None)
mount_fjkit(app, FjkitConfig(template_dir=APP_DIR / "templates", plugins=(ApiDocsPlugin(),)))

The page appears at /api-docs, built from the same app.openapi() document Swagger reads. Two things Swagger UI cannot do:

  • Sign-in is the app's own code. AuthFlow is a Python object, so "log in" means whatever the app defines.
  • Calls carry a credential JavaScript cannot reach. The console replays the request through the app in-process, forwarding the caller's HttpOnly session cookie, so token refresh, revocation and CSRF are handled by the middleware the call passes through rather than reimplemented in the page.

Shadow any template by dropping a file of the same name into the app's own templates/apidocs/.

License

MIT. See LICENSE.

Metadata

Release files for fjkit-apidocs 0.2.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 fjkit-apidocs 0.2.0
File Size Uploaded Provenance Actions
fjkit_apidocs-0.2.0.tar.gz 74.9 kB Without provenance Details for fjkit_apidocs-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fjkit-apidocs 0.2.0
File Interpreter ABI Platform Actions
fjkit_apidocs-0.2.0-py3-none-any.whl Python 3 none any Details for fjkit_apidocs-0.2.0-py3-none-any.whl

Total release size: 140.7 kB

Release files / fjkit_apidocs-0.2.0.tar.gz

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

Download URL fjkit_apidocs-0.2.0-py3-none-any.whl
Size 65.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59b21059c355e3d0e63134169ad458fd01ad64a13ec9aebfe55747a4b45a8e07
BLAKE2b-256 checksum
How to use checksums
15e6b4d94711533e658118530f65511cbba061c4c2d4c37ee4c5d7b0972e9d94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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 fjkit-apidocs 0.2.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