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.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 fjkit-apidocs 0.1.0
File Size Uploaded Provenance Actions
fjkit_apidocs-0.1.0.tar.gz 67.2 kB Without provenance Details for fjkit_apidocs-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 129.7 kB

Release files / fjkit_apidocs-0.1.0.tar.gz

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

Download URL fjkit_apidocs-0.1.0-py3-none-any.whl
Size 62.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed45e12930317079e3e81f8d07b88062605fced316a5776e8cd04f3ab2ccb66f
BLAKE2b-256 checksum
How to use checksums
51417fe8567974754c733f34462b003dec37371341e9f9b4eced7a9cbe44004a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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 fjkit-apidocs 0.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