Skip to main content

A Python module to generate a page documenting the API of a Flask application.

Project description

Flask API Auto-documentation

A Python module to generate a page documenting the API of a Flask application.

Installation

pip install flask-audo-doc

Usage

import flask
from flask_api_autodoc.view import render_page

app = flask.Flask('demo')
app.route('/info')(render_something)
app.route('/api/this')(render_something)
app.route('/api/that')(render_something)

@app.route('/doc')
def _():
  return render_page(path_prefixes=['/api'])

Support

Please open an issue for support.

Contributing

Clone, edit, and submit pull requests.

Dev Automation

  • make clean
  • make test
  • make tox
  • make install-local
  • make build

Author

Lawrence Siden
Westside Consulting LLC
Ann Arbor, MI USA
lsiden@gmail.com

License

MIT

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

flask-api-autodoc-1.0.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

flask_api_autodoc-1.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

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