laike9m / pdir2
- суббота, 11 марта 2017 г. в 03:11:57
Python
Pretty dir() printing with joy 🍺
Have you ever dreamed of a better output of dir()? I do. So I created this.
Attributes are grouped by types/functionalities, with beautiful colors.
Support all platforms including Windows(Thanks to colorama).
The return value of pdir() can still be used as a list of names.
You can search for certain names with .s() or .search():
pip install pdir2
About the name. I wanted to call it pdir, but there's already one with this
name on pypi. Mine is better, of course.
Simply run pytest, or use tox if you like.