Metadata-Version: 1.1
Name: pyformat
Version: 0.2.1
Summary: Formats Python code (using autoflake, autopep8,  docformatter, etc.).
Home-page: https://github.com/myint/pyformat
Author: Steven Myint
Author-email: UNKNOWN
License: Expat License
Description: pyformat
        ========
        
        .. image:: https://travis-ci.org/myint/pyformat.png?branch=master
           :target: https://travis-ci.org/myint/pyformat
           :alt: Build status
        
        Formats Python code (using autoflake_, autopep8_, docformatter_, etc.).
        
        .. _autoflake: https://github.com/myint/autoflake
        .. _autopep8: https://github.com/hhatto/autopep8
        .. _docformatter: https://github.com/myint/docformatter
        
        
        Installation
        ------------
        From pip::
        
            $ pip install --upgrade pyformat
        
        
        Example
        -------
        
        After running::
        
            $ pyformat example.py
        
        this code
        
        .. code-block:: python
        
           def launch_rocket   ():
        
        
        
               """Launch
           the
           rocket. Go colonize space."""
        
           def factorial(x):
               '''
        
               Return x factorial.
        
               This uses math.factorial.
        
               '''
               import math
               import re
               import os
               return math.factorial( x );
           def print_factorial(x):
               """Print x factorial"""
               print( factorial(x)  )
           def main():
               """Main
               function"""
               print_factorial(5)
               if factorial(10):
                 launch_rocket()
        
        gets formatted into this
        
        .. code-block:: python
        
           def launch_rocket():
               """Launch the rocket.
        
               Go colonize space.
        
               """
        
        
           def factorial(x):
               """Return x factorial.
        
               This uses math.factorial.
        
               """
               import math
               return math.factorial(x)
        
        
           def print_factorial(x):
               """Print x factorial."""
               print(factorial(x))
        
        
           def main():
               """Main function."""
               print_factorial(5)
               if factorial(10):
                   launch_rocket()
        
Keywords: beautify,code,format,formatter,reformat,style
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
