pydocstyle
mkdocstrings
Our great sponsors
pydocstyle | mkdocstrings | |
---|---|---|
4 | 9 | |
1,106 | 1,567 | |
- | 3.4% | |
6.1 | 8.3 | |
6 months ago | 24 days ago | |
Python | Python | |
MIT License | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pydocstyle
-
Best general packages to use for Python projects
Not so much for the project but for project support I always use black for formatting. mypy to check my code. pydocstyle to check the comments.
-
What do you think about this method docstring style?
Check out https://github.com/pycqa/pydocstyle. There's a flake8 extension for it too https://pypi.org/project/flake8-docstrings/
-
Code Quality Tools in Python
pydocstyle
-
What's your 5(ish) year career plan?
something like pydocstyle and make sure all your functions and classes are correctly documented.
mkdocstrings
-
Starlite development updates January ’23
Mkdocs has the mkdocstrings plugin, offering limited automated API documentation capabilities. It is however nowhere near as capable as Sphinx' autodoc, missing granularity in its configuration, limited intersphinx-like cross-referencing support, and essential features like documentation of inherited members, or the ability to manually describe objects if needed.
-
what's a good documentation platform that you guys would recommend?
mkdocstrings works well, although it is not as powerful as the API documentation in Sphinx.
-
Stripe Open Sources Markdoc
Author of Materia for MkDocs here. MkDocstrings [1] implements automatic generation of reference documentation from sources. It's language-agnostic, actively maintained and currently supports Python [2] and Crystal [3]. It also integrates nicely with Material for MkDocs.
[1]: https://mkdocstrings.github.io/
- Mkdocstrings: Automatic Python documentation from sources, for MkDocs
- Technical documentation that just works
-
mkdocstrings: the "autodoc" plugin for MkDocs
Some time has passed since I first introduced mkdocstrings here on reddit. If you don't know what mkdocstrings is: it's the equivalent of the autodoc Sphinx extension, but for MkDocs, a Markdown static site generator. It works differently though, and supports multiple languages by design (not only Python). Someone actually wrote a very good handler for the Crystal language, and another user on GitHub recently expressed their interest for writing one for Go.
-
Python tutorials building large(r) projects
Write proper docstrings as you go along (every time you write a new class/method/function you can document what it’s doing as you’ll know why and what from the pattern you chose). Using a tool like mkdocstrings makes maintaining documentation for larger projects automatic.
-
[Project] mkgendocs - Generating documentation from Python docstrings for MkDocs
I learned of https://github.com/pawamoy/mkdocstrings recently. Is it similar ?
-
Python packages and plugins as namespace packages
A user of mkdocstrings wrote a Crystal handler for their own use-case. They asked on the Gitter channel if we could allow to load external handlers, so they don't have to fork the project and install the fork, but rather just install their lightweight package containing just the handler.
What are some alternatives?
black - The uncompromising Python code formatter
mkdocs-material - Documentation that simply works
autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.
sphinx - The Sphinx documentation generator
pyment - Format and convert Python docstrings and generates patches
furo - A clean customizable documentation theme for Sphinx
pycodestyle - Simple Python style checker in one Python file
cookietemple - A collection of best practice cookiecutter templates for all domains and languages with extensive Github support ⛺
pylama - Code audit tool for python.
pydantic - Data validation using Python type hints
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
mkdocs-markdownextradata-plugin - A MkDocs plugin that injects the mkdocs.yml extra variables into the markdown template