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.3.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.3.0
File Size Uploaded Provenance Actions
fjkit_apidocs-0.3.0.tar.gz 73.6 kB Without provenance Details for fjkit_apidocs-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 138.4 kB

Release files / fjkit_apidocs-0.3.0.tar.gz

Download URL fjkit_apidocs-0.3.0.tar.gz
Size 73.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9eb6ad276faf35ce3948faacb764b9072c91adf871590996023118a74f55191a
BLAKE2b-256 checksum
How to use checksums
51d974415b5b99b69ec8a7877843a52d525eb1e5416dc3c1e14e09dc68da68d4
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":"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.3.0-py3-none-any.whl

Download URL fjkit_apidocs-0.3.0-py3-none-any.whl
Size 64.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d3d034e4463f93ff29db6f1730557d45a19f6050b77d0e599a8fd62364c8407
BLAKE2b-256 checksum
How to use checksums
9f8e91226f3917a00763dca1b2d5f51f01b941d3f185a40fc969ed941d06311e
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":"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.3.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