Skip to main content

The Cython compiler for writing C extensions in the Python language.

Project description

The Cython language makes writing C extensions for the Python language as easy as Python itself. Cython is a source code translator based on Pyrex, but supports more cutting edge functionality and optimizations.

The Cython language is a superset of the Python language (almost all Python code is also valid Cython code), but Cython additionally supports optional static typing to natively call C functions, operate with C++ classes and declare fast 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 writing glue code for external C/C++ libraries, and for fast C modules that speed up the execution of Python code.

Note that for one-time builds, e.g. for CI/testing, on platforms that are not covered by one of the wheel packages provided on PyPI and the pure Python wheel that we provide is not used, it is substantially faster than a full source build to install an uncompiled (slower) version of Cython with:

pip install Cython --install-option="--no-cython-compile"

Release history Release notifications | RSS feed

This version

3.0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Cython-3.0.9.tar.gz (2.7 MB view hashes)

Uploaded source

Built Distributions

Cython-3.0.9-py2.py3-none-any.whl (1.2 MB view hashes)

Uploaded py2 py3

Cython-3.0.9-cp312-cp312-win_amd64.whl (2.8 MB view hashes)

Uploaded cp312

Cython-3.0.9-cp312-cp312-win32.whl (2.6 MB view hashes)

Uploaded cp312

Cython-3.0.9-cp311-cp311-win_amd64.whl (2.8 MB view hashes)

Uploaded cp311

Cython-3.0.9-cp311-cp311-win32.whl (2.6 MB view hashes)

Uploaded cp311

Cython-3.0.9-cp310-cp310-win_amd64.whl (2.8 MB view hashes)

Uploaded cp310

Cython-3.0.9-cp310-cp310-win32.whl (2.6 MB view hashes)

Uploaded cp310

Cython-3.0.9-cp39-cp39-win_amd64.whl (2.8 MB view hashes)

Uploaded cp39

Cython-3.0.9-cp39-cp39-win32.whl (2.6 MB view hashes)

Uploaded cp39

Cython-3.0.9-cp38-cp38-win_amd64.whl (2.8 MB view hashes)

Uploaded cp38

Cython-3.0.9-cp38-cp38-win32.whl (2.6 MB view hashes)

Uploaded cp38

Cython-3.0.9-cp37-cp37m-win_amd64.whl (2.7 MB view hashes)

Uploaded cp37

Cython-3.0.9-cp37-cp37m-win32.whl (2.5 MB view hashes)

Uploaded cp37

Cython-3.0.9-cp36-cp36m-win_amd64.whl (2.8 MB view hashes)

Uploaded cp36

Cython-3.0.9-cp36-cp36m-win32.whl (2.6 MB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page