# dgrunwald/rust-cpython

Rust <-> Python bindings

Repository: https://github.com/dgrunwald/rust-cpython
Canonical: https://ross.abutalabs.com/products/rust-cpython
Language: Rust
License: MIT
License Family: permissive
Last push: 2024-08-14T18:24:30+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4258, "days_push": 749, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1839, forks 134 (observed 2026-08-28T04:05:42.941213+00:00)

## What it is
rust-cpython is a Rust library providing bindings to the Python interpreter, enabling Rust code to call Python and Rust extension modules to be exposed as Python libraries. It is no longer actively maintained, with PyO3 recommended as its successor.

## Use cases
- embed the python interpreter in a rust application
- write python extension modules in rust
- call python code from rust
- expose rust functions to python
- interoperate between rust and python

## When to choose
- maintaining an existing codebase already built on rust-cpython
- you need python 2.7 support which pyo3 dropped

## When to avoid
- starting a new rust-python binding project
- you want an actively maintained library
- you need support for python 3.13 or newer

## Facets
- artifact type: library
- maturity: abandoned
- function: sdk, parser
- domain: developer-tools, programming-languages, cross-platform
- platform: rust, python, cross-platform
- tags: python-bindings, ffi, extension-module, deprecated, pyo3-alternative

## Member repositories
- dgrunwald/rust-cpython (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:42.941213+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:18:14.532783+00:00, confidence not recorded.
  - readme: https://github.com/dgrunwald/rust-cpython (fetched 2026-08-28T04:05:42.941213+00:00, sha f0d222f24198)
- Data as of 2026-08-30T08:39:29.467469+00:00.
