Create, update or convert docstrings in existing Python files, managing several styles. This Python3 program intends to help Python programmers to enhance inside code documentation using docstrings. It is useful for code not well documented, or code without docstrings, or some not yet or partially documented code, or a mix of all of this. It can be helpful also to harmonize or change a project docstring style format. It will parse one or several python scripts and retrieve existing docstrings. Then, for all found functions/methods/classes, it will generate formatted docstrings with parameters, default values. At the end, patches can be generated for each file. Then, man can apply the patches to the initial scripts. It is also possible to update the files directly without generating patches, or to output on stdout. It is also possible to generate the python file with the new docstrings, or to retrieve only the docstrings.

Features

  • You can configure some settings via the command line or a configuration file
  • To get further information please refer to the documentation
  • The tool, at the time, offer to generate patches or get a list of the new docstrings (created or converted)
  • install from Pypi
  • Use Pyment to generate a patch and then apply the patch
  • Create, update or convert docstrings in existing Python files

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

GNU General Public License version 3.0 (GPLv3)

Follow pyment

pyment Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pyment!

Additional Project Details

Programming Language

Python

Related Categories

Python Data Formats Software

Registered

2023-02-17