# PyO3/rust-numpy

PyO3-based Rust bindings of the NumPy C-API

Repository: https://github.com/PyO3/rust-numpy
Canonical: https://ross.abutalabs.com/products/rust-numpy
Language: Rust
License: BSD-2-Clause
License Family: permissive
Topics: numpy, numpy-capi, rust-bindings, rust-numpy, rust-ndarray, ndarray
Last push: 2026-08-24T20:00:15+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 76, longevity 100
- inputs: {"age_days": 3421, "days_push": 9, "days_rel": 81, "gap_med": 65, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1382, forks 141 (observed 2026-08-28T04:04:34.455769+00:00)

## What it is
Rust bindings for the NumPy C-API built on PyO3, enabling zero-copy conversion between Rust ndarray types and NumPy arrays. It supports writing Python extension modules in Rust as well as embedding Python in Rust programs to exchange array data.

## Use cases
- write a Python extension module in Rust that operates on NumPy arrays
- convert NumPy arrays to Rust ndarray views without copying data
- speed up numerical Python code with Rust kernels
- call Python and NumPy from a Rust application and get array results back
- build parallel numeric routines in Rust exposed to Python via rayon

## When to choose
- you need high-performance Rust code operating on NumPy arrays with minimal copying
- you are already using PyO3 and want typed NumPy array interop
- you want to embed Python in a Rust program and exchange array data

## When to avoid
- you only need pure-Python NumPy work with no Rust involvement
- you need bindings for a language other than Python or Rust
- your project requires Python < 3.9 or Rust < 1.83

## Facets
- artifact type: library
- maturity: active
- function: sdk, machine-learning, data-science
- domain: developer-tools, data-science, machine-learning
- platform: rust, python, cross-platform
- tags: numpy, pyo3, ndarray, rust-bindings, python-extensions, ffi

## Member repositories
- PyO3/rust-numpy (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.455769+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-30T04:40:05.719087+00:00, confidence not recorded.
  - readme: https://github.com/PyO3/rust-numpy (fetched 2026-08-28T04:04:34.455769+00:00, sha c6651409982c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
