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 = Flask(__name__)
openapi = OpenAPI()

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


openapi.register(app)

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.4.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.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file Flask-Pydantic-Docs-0.0.4.tar.gz.

File metadata

  • Download URL: Flask-Pydantic-Docs-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 2c586d4b8cf83f74003e9f4c5d5ad88a7cb63aefec4f5dfdf85193d54a624f09
MD5 54fe918000014a5945a420ddc35810b1
BLAKE2b-256 cbac669c3da6d5531cba24e7364ecc48c111c09890781618c25eeaf12080c20d

See more details on using hashes here.

File details

Details for the file Flask_Pydantic_Docs-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: Flask_Pydantic_Docs-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fd3d9a4149c275dd10540926dc39952bac95baaebabb2e67f30739e99f4a927a
MD5 32d8c6503c0572394e7024ee65249a3e
BLAKE2b-256 cebdb08b8812e474382405d314414b5dd6d2d5281730b3781d70161d8c77bc58

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