cython/cython
The most widely used Python to C compiler observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 18.5
- age_days: 5764
- days_rel: 11
- days_push: 7
- n_releases_24m: 21
Adoption not part of the score
10833 stars · 1618 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Cython is an optimising static compiler that translates Python and the extended Cython language into C/C++ code for building fast CPython extension modules. It supports static type declarations, calling C/C++ functions directly, and wrapping external C libraries.
Use cases
- speed up slow Python code by compiling it to C
- wrap an existing C or C++ library for use from Python
- add static type declarations to performance-critical Python functions
- work efficiently with large NumPy arrays and numerical data
- embed CPython into existing C/C++ applications
- write parallel code that releases the GIL
When to choose
- you need orders-of-magnitude speedups for hot paths in CPython code
- you must interoperate with C/C++ libraries from Python
- you want a mature, widely used tool with broad CPython version compatibility
- you need fine-grained control over generated C code
When to avoid
- you want a JIT with no build step (consider Numba or PyPy)
- your code is I/O-bound and not CPU-bound
- you target non-CPython runtimes exclusively
- you want full Python language compliance without limitations
Facets
cli-tool · maturity stable
compiler programming-language build-tool programming-languages compilers performance developer-tools python cpp cross-platform python-to-c c-extensions static-typing cpython numpy performance-optimization compiler
4 sources
- readme: https://github.com/cython/cython · fetched 2026-08-28 · 14f71ee13057
- homepage: https://cython.org · fetched 2026-08-29 · b95974b080e3
- site_page: http://docs.cython.org/src/quickstart/cythonize.html · fetched 2026-08-29 · 872a8eff209e
- site_page: https://docs.cython.org · fetched 2026-08-29 · 69d97fec9ea6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cython/cython | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem