cython – C-Extensions for Python¶
- Related packages
- More information
- External resources
Cython 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 optimizations.
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.
Distribution |
Base version |
Our version |
Architectures |
---|---|---|---|
Debian GNU/Linux 10.0 (buster) |
0.29.2-2 |
||
Debian GNU/Linux 11.0 (bullseye) |
0.29.21-3 |
||
Debian GNU/Linux 12.0 (bookworm) |
0.29.32-2 |
||
Debian GNU/Linux 9.0 (stretch) |
0.25.2-1 |
0.29.2-2+nd1~nd90+1 |
i386, amd64 |
Debian testing (trixie) |
3.0.11+dfsg-1 |
||
Debian unstable (sid) |
3.0.11+dfsg-1 |
0.13-1~nd+1 |
i386, amd64 |
Ubuntu 16.04 “Xenial Xerus” (xenial) |
0.23.4-0ubuntu5 |
||
Ubuntu 18.04 “Bionic Beaver” (bionic) |
0.26.1-0.4 |
||
Ubuntu 20.04 “Focal Fossa” (focal) |
0.29.14-0.1ubuntu3 |
||
Ubuntu 22.04 “Jammy Jellyfish” (jammy) |
0.29.28-1ubuntu3 |
||
Ubuntu 24.04 “Noble Numbat” (noble) |
3.0.8-1ubuntu3 |