/pyastyle

astyle library as a python module

Primary LanguagePython

Python module for astyle

PyPI Package latest release Travis-CI Build Status AppVeyor Build Status

This is a python wrapper extension for Artistic Style, a wonderful code formatter & beautifier.

Install

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

Upgrade

You can upgrade your pyastyle version with the command:

$ pip install --upgrade pyastyle

API

  • pyastyle.version()
  • pyastyle.format(code, options)

Credits

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