hpyproject/hpy
HPy: a better API for Python observed · 2026-08-28
Health v2 · maintenance only
33/100
- Activity 23
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2609
- days_rel: n/a
- days_push: 464
- n_releases_24m: 0
Adoption not part of the score
1140 stars · 51 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
HPy is a new C API and ABI specification for extending Python that is implementation-agnostic, working across CPython, PyPy, and GraalPy. It offers zero-overhead on CPython, universal binaries, a debug mode for detecting memory leaks and API misuse, and an incremental migration path from the legacy C API.
Use cases
- write Python C extensions that run on CPython, PyPy, and GraalPy
- port an existing CPython C API extension to a portable API
- detect forgotten Py_INCREF/Py_DECREF memory leaks in C extensions
- build universal binaries that stay compatible across Python versions
- speed up C extensions on alternative Python implementations like PyPy
- experiment with CPython internals like removing the GIL or using a GC
When to choose
- you maintain a C extension and want compatibility with PyPy or GraalPy
- you want runtime debugging of reference-counting bugs in C extensions
- you want binary stability across CPython versions without recompiling
- you are building new C extensions and want a cleaner, more consistent API
When to avoid
- you only target CPython and are happy with the standard C API
- you depend on C API features not yet covered by HPy
- you need a fully stable, long-term-supported ABI today since HPy is still approaching its first stable release
Facets
library · maturity active
programming-language sdk developer-tools programming-languages developer-tools performance python cpp cross-platform c-api python-extensions cpython pypy graalpy abi debug-mode
2 sources
- readme: https://github.com/hpyproject/hpy · fetched 2026-08-28 · 197a0026a4c2
- homepage: https://hpyproject.org · fetched 2026-08-29 · 059430fe72c1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hpyproject/hpy | main | 33 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem