Skip to main content

Griffe extension for FastAPI.

Project description

Griffe FastAPI Extension

This extension will search for functions that are decorated with an APIRouter and adds the following extra fields to a function:

  • method: the HTTP method
  • responses: A dictionary with the responses

These fields are stored in the extra property of the function. The extra property is a dictionary and griffe_fastapi is the key for the fields of this extension.

Create a custom function template to handle these extra fields in your documentation.

Installation

pip install griffe-fastapi

or with poetry:

poetry add griffe-fastapi -G docs

When you use a group, like above, you also need to install it:

poetry install -G docs

MkDocs

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - griffe_fastapi

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

griffe_fastapi-0.1.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

griffe_fastapi-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file griffe_fastapi-0.1.3.tar.gz.

File metadata

  • Download URL: griffe_fastapi-0.1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-113-generic

File hashes

Hashes for griffe_fastapi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 95038bae97e38239d27a053ff01ad7693fa967ba1dfcc884c1f3236c05e55076
MD5 56cbc3e6e6c8d809df0e11c292efdd4d
BLAKE2b-256 e658ce3bc78425e6d41f48133b1dca044901f1dd0f77c46202fadebfbe070118

See more details on using hashes here.

File details

Details for the file griffe_fastapi-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: griffe_fastapi-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-113-generic

File hashes

Hashes for griffe_fastapi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd9019f7c33355b7b1f54ab6d049bbc30dbd36fc0ed0fbb7ddd40ea736e7f6b
MD5 db71b07b4886159b2a09977765134b3a
BLAKE2b-256 cdf58ebd0fd212d8e7bf39f0d050d3fcc75d0d2fec4d69b905b9535af212806a

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