CMD + K

mypyc

Community

Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::mypyc

Usage Tracking

1.19.1
1.19.0
1.18.2
1.18.1
1.17.1
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

The compiled language is a strict, gradually typed Python variant. It restricts the use of some dynamic Python features to gain performance, but it's mostly compatible with standard Python.

Mypyc uses mypy to perform type checking and type inference. Most type system features in the stdlib typing module are supported.

Compiled modules can import arbitrary Python modules and third-party libraries. You can compile anything from a single performance-critical module to your entire codebase. You can run the modules you compile also as normal, interpreted Python modules.

Existing code with type annotations is often 1.5x to 5x faster when compiled. Code tuned for mypyc can be 5x to 10x faster.

Mypyc currently aims to speed up non-numeric code, such as server applications. Mypyc is also used to compile itself (and mypy).

About

Summary

Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code.

Last Updated

Dec 15, 2025 at 10:47

License

MIT

Total Downloads

449.8K

Version Downloads

1.9K

Supported Platforms

linux-aarch64
linux-ppc64le
macOS-64
linux-64
macOS-arm64
win-64