# lcompilers/lpython

Python compiler

Repository: https://github.com/lcompilers/lpython
Canonical: https://ross.abutalabs.com/products/lpython
Homepage: https://lpython.org/
Language: C++
License: NOASSERTION
License Family: other
Topics: compiler, high-performance, python
Last push: 2025-12-11T16:15:54+00:00

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

## Adoption (not part of the score)
Stars 1630, forks 176 (observed 2026-08-28T04:05:13.994434+00:00)

## What it is
LPython is an ahead-of-time Python compiler written in C++ that compiles a subset of Python to fast native binaries via LLVM, C, C++, and WASM backends. It focuses on high performance for numerical and array-oriented code, with JIT support and CPython interoperability.

## Use cases
- compile python code to fast native binaries
- speed up numerical and array-oriented python code
- transpile python to c++ or fortran
- run python in the browser via wasm
- jit-compile python functions with a decorator
- get better compiler diagnostics for python

## When to choose
- you need maximum performance from type-annotated numerical Python code
- you want to compile Python to native binaries or other languages
- you want to experiment with a novel retargetable Python compiler

## When to avoid
- you need full Python compatibility including all libraries today
- you need a production-stable toolchain
- your code relies heavily on dynamic Python features not yet supported

## Facets
- artifact type: cli-tool
- maturity: experimental
- function: compiler, interpreter, developer-tools
- domain: programming-languages, compilers, performance, developer-tools
- platform: windows, wasm, cpp
- tags: python-compiler, ahead-of-time, llvm, jit, high-performance-computing, numerical-computing, transpiler, compiler, linux, macos

## Member repositories
- lcompilers/lpython (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:13.994434+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-30T08:32:41.577005+00:00, confidence not recorded.
  - readme: https://github.com/lcompilers/lpython (fetched 2026-08-28T04:05:13.994434+00:00, sha b8daf7cca4ea)
  - homepage: https://lpython.org/ (fetched 2026-08-29T11:20:35.590535+00:00, sha b3eaaefaf7cc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
