A Python to C compiler
Python C JavaScript C++ Emacs Lisp Smalltalk
Pull request Compare This branch is 4191 commits behind cython:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Cython Allow arbitrary strides and zero- and one-sized dimensions Apr 14, 2013
Doc Add __getattribute__ to documentation. May 4, 2012
Tools enable 'optimize.inline_defnode_calls' in cystdlib.py build script Dec 22, 2012
bin moved cythonrun implementation into Cython/Build/BuildExecutable.py t… Apr 15, 2011
tests Allow arbitrary strides and zero- and one-sized dimensions Apr 14, 2013
.hgignore added *.o to ignored files Nov 19, 2011
.hgtags Added tag 0.19b2 for changeset 52beb5b16df5 Apr 12, 2013
.travis.yml disable Py2.5 builds in travis - their installation appears to be broken Jan 1, 2013
CHANGES.rst changelog Apr 12, 2013
COPYING.txt Fix COPYING.txt. Jan 19, 2011
INSTALL.txt Remove trailing whitespace. Dec 13, 2010
LICENSE.txt Fixes the lineends in LICENSE.txt Feb 9, 2009
MANIFEST.in Include CHANGES.rst into the source distribution Dec 20, 2012
README.txt Fix hg/git in readme. Feb 25, 2011
cygdb.py scripts with shebangs <-> executable + uniform use of #!/usr/bin/env … Dec 6, 2012
cython.py Make cython.py executable and add Unix shebang Apr 6, 2011
runtests.py fix so file path building in Py2.[45] Apr 14, 2013
setup.py properly integrate pyximport into setup.py Feb 27, 2013
setupegg.py scripts with shebangs <-> executable + uniform use of #!/usr/bin/env … Dec 6, 2012
tox.ini update travis/tox test config Dec 21, 2012


Welcome to Cython!

Cython (http://cython.org) is a language that makes writing C extensions for
the Python language as easy as Python itself.  Cython is based on the
well-known Pyrex, but supports more cutting edge functionality and

The Cython language is very close to the Python language, but Cython
additionally supports calling C functions and declaring C types on variables
and class attributes.  This allows the compiler to generate very efficient C
code from Cython code.

This makes Cython the ideal language for wrapping external C libraries, and
for fast C modules that speed up the execution of Python code.


The original Pyrex program was licensed "free of restrictions" (see
below).  Cython itself is licensed under the permissive

   Apache License

See LICENSE.txt.


Note that Cython used to ship the full version control repository in its source
distribution, but no longer does so due to space constraints.  To get the
full source history, make sure you have git installed, then step into the
base directory of the Cython source distribution and type

    make repo

Alternatively, check out the latest developer repository from


The following is from Pyrex:
This is a development version of Pyrex, a language
for writing Python extension modules.

For more info, see:

    Doc/About.html for a description of the language
    INSTALL.txt    for installation instructions
    USAGE.txt      for usage instructions
    Demos          for usage examples

Comments, suggestions, bug reports, etc. are

Copyright stuff: Pyrex is free of restrictions. You
may use, redistribute, modify and distribute modified

The latest version of Pyrex can be found here:


Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,          | A citizen of NewZealandCorp, a       |
Christchurch, New Zealand          | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz         +--------------------------------------+