Count and present the usage of names in python source code. Point of this tool is to study name usage in code and find out names that could be contextually reused.
Install from github:
> pip3 install git+git://github.com/hevi9/pynames.git
Requirements:
* Python 3 * jinja2
List name usage to terminal, for example in this pynames project:
> pynames pynames/*.py
==>:
1 * 5 ARGS 3 AST 1 ArgumentParser 1 D 1 DEBUG ..
List name usage to html file, for example in this pynames project:
> pynames --html out.html pynames/*.py > firefox out.html
==> out.html as http://hevi9.github.io/pynames/pynames.html
List name usage in python library:
> find /usr/lib/python3.4 -name "*py" | xargs pynames --html out.html > firefox out.html
==> out.html as http://hevi9.github.io/pynames/python-lib.html (over 20k names, takes a while)