attr_utils
Utilities to augment attrs.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
Installation
python3 -m pip install attr_utils --user
First add the required channels
conda config --add channels https://conda.anaconda.org/conda-forge
conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
conda install attr_utils
python3 -m pip install git+https://github.com/domdfcoding/attr_utils@master --user
Attention
In v0.6.0 and above the pprinter
module requires the pprint
extra to be installed:
python -m pip install attr-utils[pprint]
Overview
attr_utils
provides both utility functions and two Sphinx extensions: attr_utils.annotations
and attr_utils.autoattrs
.
Enable the extensions by adding the following to the extensions
variable in your conf.py
:
extensions = [
...
'sphinx.ext.autodoc',
'sphinx_toolbox.more_autodoc.typehints',
'attr_utils.annotations',
'attr_utils.autoattrs',
]
For more information see https://www.sphinx-doc.org/en/master/usage/extensions#third-party-extensions .