Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.dev0

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

Built distribution (wheel)

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

Total release size: 130.1 kB

Release files / fjkit_apidocs-0.1.0.dev0.tar.gz

Download URL fjkit_apidocs-0.1.0.dev0.tar.gz
Size 67.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c91d45645b8809baf881daccc41b02bc318d1e17514e83edb5235d18c1f0bdb0
BLAKE2b-256 checksum
How to use checksums
a6bad39c27b265a77862b119ba8474aea00aead7990ac219bae0d3d3b14a46e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fjkit_apidocs-0.1.0.dev0-py3-none-any.whl

Download URL fjkit_apidocs-0.1.0.dev0-py3-none-any.whl
Size 62.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
603834f764cc6987626befa14408e06659267f5f4d5832a6146fa885fe8b3eb3
BLAKE2b-256 checksum
How to use checksums
f7ac94ba4931dc34b1651f3574623a6f8955b7f7f35cbf09c6fd4b45c0626a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for fjkit-apidocs 0.1.0.dev0

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