Skip to main content

FastAPI AutoDoc

FastAPI AutoDoc is a library designed to help developers generate and manage project documentation dynamically for Python projects. It integrates seamlessly with FastAPI and provides a web-based dashboard for managing and viewing documentation.

Features

  • Dynamic Documentation: Automatically generate documentation for Python FastApi projects.
  • Web-Based Dashboard: View and manage documentation through a user-friendly interface.
  • File Watching: Monitor project files for changes and update documentation in real-time.
  • REST API: Expose endpoints for interacting with the documentation service programmatically.
  • Health Check: Built-in health check endpoint to monitor the service.

Installation

You can install the library using pip:

pip install fastapi-autodoc==1.1.0

Usage

After installing the library, you can run the FastAPI AutoDoc server using the following command:

fastapi-autodoc generate
fastapi-autodoc runserver

This will start the server on http://127.0.0.1:8000 by default.


Accessing the Dashboard

Once the server is running, you can access the web-based dashboard at:

http://127.0.0.1:8000/api/v1/documentation/dashboard

From the dashboard, you can:

  • View the list of documented projects.
  • Generate new documentation.
  • Monitor file changes in real-time.
  • When you view the documentation, it will be displayed in a web-based interface. And you can always view detailed documentation

Health Check

To verify that the server is running, you can access the health check endpoint:

http://127.0.0.1:8000/health

This will return a JSON response indicating the status of the service:

{
  "status": "ok"
}

Configuration

You can customize the behavior of FastAPI AutoDoc by setting environment variables in a .env file. For example:

PROJECT_PATH=the path to the project you want to document
DEBUG=True

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository.


Metadata

Release files for fastapi-autodoc 1.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 fastapi-autodoc 1.1.0
File Size Uploaded
fastapi_autodoc-1.1.0.tar.gz 33.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-autodoc 1.1.0
File Interpreter ABI Platform
fastapi_autodoc-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.0 kB

Release files / fastapi_autodoc-1.1.0.tar.gz

Download URL fastapi_autodoc-1.1.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f0e12588d17d53a037da645157c13fb7a4e914f5845c4d22848ae3dbd4841987
BLAKE2b-256 checksum
How to use checksums
eee2bfe1f241e48c1e35e812726610e2647a0ade0926eba2ea97e5c993791137
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / fastapi_autodoc-1.1.0-py3-none-any.whl

Download URL fastapi_autodoc-1.1.0-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22e970d58b279dc6cebf92d2b208f19a2ac600e61e962dc9772f4eaa2a6eac0e
BLAKE2b-256 checksum
How to use checksums
b2b508a428ffaae72deb53038b2d33e93bb56c8b2db87c94ceefb61200906417
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

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