# mypyc/mypyc

Compile type annotated Python to fast C extensions

Repository: https://github.com/mypyc/mypyc
Canonical: https://ross.abutalabs.com/products/mypyc
License Family: other
Topics: python, compiler, types
Last push: 2023-04-17T10:24:19+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3327, "days_push": 1234, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2019, forks 49 (observed 2026-08-28T04:06:06.246827+00:00)

## What it is
Mypyc is a compiler that translates type-annotated Python modules into fast C extensions, using mypy for type checking and inference. It powers a 4x speedup of mypy itself and supports standard Python syntax with full stdlib and third-party library access.

## Use cases
- speed up type-annotated python code
- compile python modules to c extensions
- make mypy run faster
- optimize hot paths in python without rewriting in c
- ahead-of-time compile a python codebase

## When to choose
- your codebase already uses python type hints and needs better performance
- you want clean standard python syntax instead of cython's non-standard constructs
- you need static and runtime type checking with fast compiled output

## When to avoid
- your code is untyped or relies heavily on dynamic python features
- you need production-grade stability without careful testing
- you need maximum compatibility with all python semantics

## Facets
- artifact type: library
- maturity: experimental
- function: compiler, type-system, developer-tools
- domain: compilers, programming-languages, performance, developer-tools
- platform: python, cpp, cross-platform
- tags: python-to-c, type-annotations, ahead-of-time-compilation, mypy, performance-optimization

## Member repositories
- mypyc/mypyc (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.246827+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:00:26.963755+00:00, confidence not recorded.
  - readme: https://github.com/mypyc/mypyc (fetched 2026-08-28T04:06:06.246827+00:00, sha 7358512ff149)
- Data as of 2026-08-30T08:39:29.467469+00:00.
