pyston
A JIT for Python
What it is and what it does
Pyston is a JIT compiler that accelerates Python code by compiling hot paths to machine code at runtime. It comes in two flavors: pyston-full, a fork of CPython 3.8 with integrated optimizations, and pyston-lite, an extension module that works with Python 3.7–3.10 without requiring recompilation of C extensions. The full version uses low-overhead JIT compilation via DynASM, quickening, and aggressive attribute caching; the lite version trades some performance for ease of deployment and binary package compatibility.
Pyston is designed for workloads where Python startup and execution speed matter—particularly web servers and long-running processes. It requires no code changes to use (drop-in replacement) but pyston-full is not ABI-compatible with CPython, meaning C extensions must be recompiled. The project is no longer actively maintained (last release 2022-09-26), though the repository shows recent activity; adoption should weigh the performance upside against the risk of compatibility issues as the Python ecosystem evolves.
Use it for:
- Accelerate web server workloads where request latency and throughput directly impact user experience.
- Speed up long-running batch jobs or data processing scripts without code refactoring.
- Reduce cloud compute costs by achieving higher throughput per instance with the same hardware.
- Evaluate JIT compilation techniques for Python without switching to a different language.
- Profile and optimize hot paths in existing Python applications with minimal integration effort.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pyston is a performance-optimizing JIT compiler for Python that runs as a drop-in replacement for the standard Python interpreter, available in both a full CPython fork and a lightweight extension module.
Yes, if you are running Python 3.7–3.10 on macOS or Linux and want a low-friction performance boost for web or batch workloads. Use the lite variant to avoid C extension recompilation. No, if you depend on active maintenance, need Python 3.11+ support, or require a clear license statement—the project is dormant and license terms are undocumented. Conditional yes for experimental evaluation; not recommended for production systems without thorough testing.
Install
pyston on PyPI
pip
pip install pystonuv
uv add pystonpoetry
poetry add pystonInstalling pyston
Before you install
Medium install friction due to platform-specific wheels (cp37–cp310 across macOS and Linux). The project is dormant (last release September 2022, no updates in 1418 days) but the repository remains active with recent commits as of August 2024. No runtime dependencies simplifies deployment once installed.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the metadata. Verify the actual license terms on the GitHub repository before committing to production use.
Quickstart
# Install the JIT extension module
pip install pyston
# Then run Python normally; the JIT can be loaded at startup.
# To verify Pyston-full:
import sys
hasattr(sys, "pyston_version_info")
# To verify Pyston-lite:
"pyston_lite" in sys.modules
Pyston-full requires recompilation of C extensions (not ABI-compatible with CPython); pyston-lite avoids this by using existing binary packages but is only available for Python 3.7–3.10.
Verify before relying
- Current performance gains relative to modern CPython versions; the 30% and 10% figures cited lack a timestamp or baseline version reference.
- Whether the dormant maintenance status (no releases since 2022-09-26) affects compatibility with recent Python ecosystem changes.
- Exact license terms and any restrictions on commercial or proprietary use.
- Whether this package on PyPI is the same as the full Pyston distribution or refers to the lite variant.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 1,418 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 465,333/month — #6,508 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyston-2.3.5-cp310-cp310-macosx_10_16_x86_64.whl; pyston-2.3.5-cp310-cp310-macosx_11_0_arm64.whl; pyston-2.3.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyston-2.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyston-2.3.5-cp37-cp37m-macosx_10_16_x86_64.whl; pyston-2.3.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyston-2.3.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyston-2.3.5-cp38-cp38-macosx_10_16_x86_64.whl; pyston-2.3.5-cp38-cp38-macosx_11_0_arm64.whl; pyston-2.3.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyston-2.3.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyston-2.3.5-cp39-cp39-macosx_10_16_x86_64.whl; pyston-2.3.5-cp39-cp39-macosx_11_0_arm64.whl; pyston-2.3.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyston-2.3.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pyston-autoloadAutomatically loads and enables Pyston, a…
unclear · top 15,000 on PyPI
nvidia-nvjitlinkProvides NVIDIA's JIT LTO compiler library for…
unclear · top 1,000 on PyPI
tokenspeed-tritonTriton is a language and compiler for writing…
permissive · top 5,000 on PyPI
nvidia-nvjitlink-cu12Provides NVIDIA's JIT LTO compiler library for…
unclear · top 1,000 on PyPI
lupaLupa embeds Lua or LuaJIT runtimes into…
permissive · top 1,000 on PyPI
drjitDr.Jit is a just-in-time compiler for…
permissive · top 15,000 on PyPI
tritonTriton is a language and compiler for writing…
permissive · top 1,000 on PyPI
charmcraftcacheAccelerates charmcraft builds by…
unclear · top 15,000 on PyPI
cppyy-clingProvides Cling, an LLVM-based interactive C++…
copyleft · top 15,000 on PyPI
numbaNumba is a just-in-time compiler that…
permissive · top 1,000 on PyPI