Menu

Home

Ahnaf

Header Image

py2pyc

IMPORTANT: py2pyc-v1.5 is released. Please see the downloads page for links.

What is py2pyc?

py2pyc is a Python Source Compiler which compiles your Python Source files (.py) to Python Compiled Byte-Code (.pyc). It uses the py_compile and compileall modules included in Python to work.

Why should I use py2pyc instead of compiling them myself?

With py2pyc you can easily compile a single file just by entering its name or compile all of the source files in a folder just by writing "Compile All". Whereas if you want to compile them manually you've to open the Console/Terminal/CMD and change directory to the folder where there is the .py files you want compile and run "import py_compile". Then you have to run "py_compile.compile('filename.py')". Or you have to do "import compileall" and do "python -m compileall". py2pyc saves you from all those trouble.

Which versions of Python does py2pyc work with?

As of current, py2pyc works with Python 2.7.x and Python 3.2.x. You have to download the version of py2pyc appropriate to the version of your Python.

py2pyc-v1.5-python2.7 - Works with Python 2.7.x
py2pyc-v1.5-python3.2 - Works with Python 3.2.x