Skip to main content

Set docstring style to 'auto' for external packages.

Project description

griffe-autodocstringstyle

ci documentation pypi version gitter

Set docstring style to 'auto' for external packages.

Installation

pip install griffe-autodocstringstyle

Usage

Enable the griffe_autodocstringstyle extension. Now all packages loaded from a virtual environment will have their docstrings parsed with the auto style (automatically guessing the docstring style).

Use the exclude option to pass package names that shouldn't be considered. This can be useful if you must first install your sources as a package before loading/documenting them (meaning they end up in the virtual environment too).

With MkDocs:

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - griffe_autodocstringstyle:
              # only useful if your sources can't be found
              # in the current working directory
              exclude:
              - my_package

Sponsors

Silver sponsors

FastAPI

Bronze sponsors

Nixtla


ofek samuelcolvin tlambert03 ssbarnea femtomc cmarqu kolenaIO ramnes machow BenHammersley trevorWieland MarcoGorelli analog-cbarber OdinManiac rstudio-sponsorship schlich butterlyn livingbio NemetschekAllplan EricJayHartman 15r10nk activeloopai roboflow cmclaughlin blaisep RapidataAI rodolphebarbanneau theSymbolSyndicate blakeNaccarato ChargeStorm Alphadelta14 Cusp-AI

And 7 more private sponsor(s).

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_autodocstringstyle-0.2.1.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

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

griffe_autodocstringstyle-0.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file griffe_autodocstringstyle-0.2.1.tar.gz.

File metadata

File hashes

Hashes for griffe_autodocstringstyle-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6695430968bc5b2a493017cbd47013ac41de6828f1c57b280446c69fcaa5c485
MD5 5eb5e27c149c39aa32bf90918dc6b6e6
BLAKE2b-256 0040e1694363344952a8115256e6e5bb5a6c4623975fe6399c4560898f7cf4fd

See more details on using hashes here.

File details

Details for the file griffe_autodocstringstyle-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_autodocstringstyle-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d810a2b71bd1f1b24de75af97652fb63c562d5398e716107369595a395da070c
MD5 3ebbe9e9432da34e46fd43cb9c2f330e
BLAKE2b-256 4c9d94130e0cea7962aec6b42eeea225615d3453ec792cb0dfa60892c4ec3fbd

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