# py2many/py2many

Transpiler of Python to many other languages

Repository: https://github.com/py2many/py2many
Canonical: https://ross.abutalabs.com/products/py2many
Language: Python
License: MIT
License Family: permissive
Topics: python, rust, transpiler, golang, kotlin, julia, ast, dart, nim, smt, vlang, dlang, mojo, ziglang
Last push: 2026-08-25T19:21:38+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 64, longevity 100
- inputs: {"age_days": 2047, "days_push": 8, "days_rel": 29, "gap_med": 579, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1308, forks 86 (observed 2026-08-28T04:04:19.234968+00:00)

## What it is
py2many is a Python-based source-to-source transpiler that converts Python code into multiple statically-typed languages including Rust, C++, Go, Zig, Julia, Kotlin, Nim, Dart, V, D, Mojo, and Lean. It uses Python's AST to perform type inference and emit idiomatic code in target languages.

## Use cases
- convert python code to rust for better performance
- transpile python to c++ for systems programming
- share library code across mobile platforms without rewriting
- learn a new language by comparing python source with transpiled output
- write security-sensitive code in python and transpile to rust
- add inferred type annotations to python code
- generate go or kotlin from python algorithms

## When to choose
- you have typed, testable python code you want to run faster in a compiled language
- you need to port python algorithms to rust, c++, or go without manual rewriting
- you want a learning aid showing python equivalents in other languages

## When to avoid
- your python code relies heavily on dynamic features, metaprogramming, or third-party libraries
- you need fully idiomatic production code in the target language without manual cleanup
- you need runtime python execution rather than translation

## Facets
- artifact type: library
- maturity: active
- function: compiler, parser, developer-tools, type-system
- domain: programming-languages, compilers, developer-tools, parsers
- platform: python, cli, cross-platform
- tags: transpiler, python-to-rust, python-to-cpp, python-to-go, code-generation, ast, source-to-source

## Member repositories
- py2many/py2many (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.234968+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:50:05.718064+00:00, confidence not recorded.
  - readme: https://github.com/py2many/py2many (fetched 2026-08-28T04:04:19.234968+00:00, sha aadd299e062c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
