Skip to main content

Generate Docstrings with type-hint informations

Project description

docstring_generator

Auto generate docstring from type-hints

How to use it

gendocs file.py
gendocs mydir/

Options

style

  • --style
  • Docstring style [numpy, rest]. [default: numpy]

ignore-classes

  • --ignore-classes
  • when used then no class will be modified

ignore-functions

  • --ignore-functions
  • when used then no function will be modified this
  • !important class methods are no functions in this context

Examples

  • An example can be found under examples

Installing

  • pip install docstring-generator

Versioning

  • For the versions available, see the tags on this repository.

Authors

  • Felix Eisenmenger

License

  • This project is licensed under the MIT License - see the LICENSE.md file for details

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

docstring_generator-0.2.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

docstring_generator-0.2.0-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page