Skip to main content

A FastAPI library for generating and managing project documentation

Project description

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

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.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_autodoc-1.0.6.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_autodoc-1.0.6-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_autodoc-1.0.6.tar.gz.

File metadata

  • Download URL: fastapi_autodoc-1.0.6.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for fastapi_autodoc-1.0.6.tar.gz
Algorithm Hash digest
SHA256 2e085e582a03e4a27117e3e36daee0d5da80f4d8030b8a3b8b60bedfe684b1eb
MD5 acb59342bf37a737ee5b5c74096fdb81
BLAKE2b-256 dc0662e4ebb50999b178c8c7ac0771b9724857c8471aab8107d9e1b39f30a12d

See more details on using hashes here.

File details

Details for the file fastapi_autodoc-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_autodoc-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7bec3bbb2c7290afc9b55487a2f804f06187107f32b65c6f2c77699f8c2805
MD5 607758a80ddea8f568e0368c16e3e695
BLAKE2b-256 9f59e59bf28d05a9f035695eef1c0bab1a2acbd81369bc69d3d4eb7e28c9ff92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page