Skip to main content

Add openapi docs to flask app using Flask-Pydantic

Project description

Flask-Pydantic-Docs

Installation

python3 -m pip install Flask-Pydantic-Docs

Usage

Example 1

@app.route("/users/<user_id>", methods=["GET"])
@docs()
@validate()
def get_user(user_id: str)
    return User(...)

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_pydantic_docs-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

flask_pydantic_docs-0.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file flask_pydantic_docs-0.0.1.tar.gz.

File metadata

  • Download URL: flask_pydantic_docs-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for flask_pydantic_docs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8d01713fe668eb26c0e52d3e7cb93ea5a6ca793dc7773c31b219da04e2aa3b9f
MD5 c5e4e9dfb72be66a761063747fdb5563
BLAKE2b-256 7a4811130c10cbca02e437d2ecb4ed9c391bb57109ef0b6ef5818edf80409a5e

See more details on using hashes here.

File details

Details for the file flask_pydantic_docs-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: flask_pydantic_docs-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for flask_pydantic_docs-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1c9ed4b3d641e763168a9511d6b3b93cbc19b811a53076952e97928142210e7
MD5 cc86cf5d7df49ced23ebd1c74f33adab
BLAKE2b-256 ae2a055c54b9635a3132c606e0254df31100a0579870da3ecdd9e2fc167e7e30

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