This is a python wrapper extension for Artistic Style, a wonderful code formatter & beautifier.
Install with pip
using the command:
$ pip install pyastyle
Or by cloning the repo from GitHub:
$ git clone git://github.com/timonwong/pyastyle.git
Then install it by running:
$ python setup.py install
You can upgrade your pyastyle version with the command:
$ pip install --upgrade pyastyle
pyastyle.version()
pyastyle.format(code, options)
Artistic Style - A Free, Fast and Small Automatic Formatter for C, C++, C#, and Java Source Code
Licensed under GNU Lesser General Public License version 3.0