Skip to main content

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.

`Bash 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:

`Bash project_name="${PWD##*/}" pyreverse -my -A -o png -p ${project_name} **.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.

![](images/packages_propyte.png)

# prerequisites

## docopt

`Bash sudo pip install docopt `

## pyfiglet

`Bash sudo pip install pyfiglet `

## pyprel

## pyrecon

## shijian

## technicolor

## Pylint, Graphviz (UML prerequisites)

`Bash sudo apt-get -y install graphviz libgraphviz-dev python-dev sudo pip install pylint pygraphviz `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for propyte, version 2016.4.22.1545
Filename, size File type Python version Upload date Hashes
Filename, size propyte-2016.4.22.1545.tar.gz (15.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page