# yglukhov/nimpy

Nim - Python bridge

Repository: https://github.com/yglukhov/nimpy
Canonical: https://ross.abutalabs.com/products/nimpy
Language: Nim
License: MIT
License Family: permissive
Last push: 2026-06-27T08:45:13+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 3184, "days_push": 67, "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 1590, forks 65 (observed 2026-08-28T04:05:08.497399+00:00)

## What it is
nimpy is a Nim library that provides seamless bidirectional integration between Nim and Python. It lets you implement Python extension modules in Nim and call Python code from Nim with automatic type conversion.

## Use cases
- write a Python module in Nim for performance-critical functions
- call Python libraries like os or numpy from Nim code
- compile Nim code into a .so or .pyd importable from Python
- speed up slow Python hot paths with compiled Nim extensions
- integrate existing Python packages into a Nim application
- build ABI-stable Python extensions that work across Python versions

## When to choose
- you need native-speed code callable from Python without writing C
- you want to use Python's ecosystem from a Nim project
- you need extensions that are ABI-compatible across Python versions
- you prefer Nim's syntax and type system over C for Python extensions

## When to avoid
- you need deep numpy integration with zero-copy performance (consider scinim)
- your project is pure Python with no need for native code
- you need bindings for a language other than Python or Nim

## Facets
- artifact type: library
- maturity: stable
- function: sdk, parser, developer-tools
- domain: programming-languages, developer-tools, cross-platform
- platform: python, cross-platform
- tags: nim-python-bridge, foreign-function-interface, python-c-api, extension-modules, interop, nim

## Member repositories
- yglukhov/nimpy (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.497399+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:54:49.179096+00:00, confidence not recorded.
  - readme: https://github.com/yglukhov/nimpy (fetched 2026-08-28T04:05:08.497399+00:00, sha 7292f773d395)
- Data as of 2026-08-30T08:39:29.467469+00:00.
