############################# EASYDEV documentation ############################# .. raw:: html
:documentation: http://easydev-python.readthedocs.io/en/latest/ :contributions: Please join https://github.com/cokelaer/easydev :source: Please use https://github.com/cokelaer/easydev :issues: Please use https://github.com/cokelaer/easydev/issues :Python version supported: 3.7, 3.8, 3.9 Motivation ============= The package `easydev `_ provides miscellaneous functions that are often used in other Python packages. **easydev** should help developers in speeding up their own developments. Some functions are very simple such as the :func:`~easydev.tools.swapdict`, which inverts the keys/values in a dictionary (assuming unique keys): .. doctest:: >>> from easydev import swapdict >>> d = {'a': 1, 'b': 2} >>> inv = swapdict(d) >>> inv {1: 'a', 2: 'b'} Other functions such as the progress bar (:mod:`~easydev.progressbar`) are more complex. Another example is the :func:`~easydev.tools.AttrDict` function: it makes the keys of a dictionary accessible as attributes. Meaning that you can get or set the values quickly as follows: .. doctest:: >>> from easydev import AttrDict >>> d = AttrDict(**{'a': 1, 'b': 2}) >>> d.a 1 >>> d.a = 10 >>> d.a 10 There are many such functions in **easydev** and the best is to have a look at the :ref:`quickstart` section for more examples and the :ref:`ref_guide` guide for an exhaustive list of tools available. Note also that **easydev** was starting a few years ago and that some functionalities did not exist back then. Some functionalities available in easydev may now exist in standard modules of Python. .. toctree:: :maxdepth: 2 :numbered: installation quickstart references