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

Uploaded Python 3

File details

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

File metadata

  • Download URL: Flask-Pydantic-Docs-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8944967220301b503c195bc433426dbbd2a797d0152abe355f6e70ebd6b2896a
MD5 c28b28e63d14b1361a76af1cc8a54150
BLAKE2b-256 689c5f8cf9c40e46a53e70abf104acb59034760524de029003454247658c5cd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_Pydantic_Docs-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba558c62b827c45d82dc10b329532c75d126222ccaaa007b57962ae7ff9b6518
MD5 6ed8d03d940eefa9f2352f2baaec76a7
BLAKE2b-256 ee0847f41053e100eaf2f23f600275bc90cd0f55b643dff94cf972759af57e10

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