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

Uploaded Python 3

File details

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

File metadata

  • Download URL: Flask-Pydantic-Docs-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 6331f0ffb034590f29acffd898cf2bb417dc432a83c7b1282c5b4d2cdb1a8a5b
MD5 c6966c02b960d29d460e2c28183e8216
BLAKE2b-256 3b9f16471a4349d44d790b431cd2fe9d6beb1f3fdbea0d034d29cdc1deedda61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_Pydantic_Docs-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e58c6478522938fb7123bbffcac4899ffece1eb4931753073a38637ebc76e62b
MD5 de31679244590b58d77271be41f91cdf
BLAKE2b-256 c5759cf8e34dbb2d92889fbfd579cc9235d16ad0185b4b36712ce97798773855

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