template Python program
Project description
propyte
quick start
The following Bash commands, that have been tested on Ubuntu 14.10, should install prerequisites, check out propyte and then generate UML diagrams of the code.
sudo pip install docopt
sudo pip install pyfiglet
sudo apt-get -y install graphviz libgraphviz-dev python-dev
sudo pip install pylint pygraphviz
git clone https://github.com/wdbm/propyte.git
cd propyte/
wget https://raw.githubusercontent.com/wdbm/pyprel/master/pyprel.py
wget https://raw.githubusercontent.com/wdbm/pyrecon/master/pyrecon.py
wget https://raw.githubusercontent.com/wdbm/shijian/master/shijian.py
wget https://raw.githubusercontent.com/wdbm/technicolor/master/technicolor.py
wget https://raw.githubusercontent.com/wdbm/smuggle/master/smuggle.py
./UML.sh
introduction
This is a template Python program.
UML
UML diagrams of a Python project can be generated using Pylint and Graphviz. This can be done by executing the Bash script UML.sh in the working directory of the project. This executes the following commands:
projectName="${PWD##*/}"
pyreverse -my -A -o png -p ${projectName} **.py
This should generate two images, classes_propyte.png and packages_propyte.png. The classes image is a representation of the classes of the project, their respective data attributes (with types), their respective methods and their inheritances. The packages image is a representation of the module dependencies of the project.
prerequisites
docopt
sudo pip install docopt
pyfiglet
sudo pip install pyfiglet
pyprel
pyrecon
shijian
technicolor
Pylint, Graphviz (UML prerequisites)
sudo apt-get -y install graphviz libgraphviz-dev python-dev
sudo pip install pylint pygraphviz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.