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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastapi_autodoc-1.1.0.tar.gz | 33.4 kB | Without provenance | Details for fastapi_autodoc-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastapi_autodoc-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for fastapi_autodoc-1.1.0-py3-none-any.whl |
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
|
Security for fastapi-autodoc 1.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.