SPy: an interpreter and a compiler for a statically typed variant of Python
SPy is a statically typed variant of Python that combines an interpreter and a compiler to enhance performance while maintaining dynamic features. It currently has limited documentation, but resources are available through blog posts and upcoming talks at PyCon events. Users can explore SPy in a browser or set it up locally using various installation methods, with specific dependencies required for each method.
- ▪SPy is designed to be statically compilable while retaining dynamic features of Python.
- ▪The only supported installation method currently is an editable install from the Git repository.
- ▪Users can execute programs in interpreted mode or compile them to native executables.
Opening excerpt (first ~120 words) tap to expand
SPy Discord server Community calls: Monthly on the first Wednesday of the month at 17:30 CET (Europe time). Google calendar and Discord Event What is SPy? TL;DR: SPy is a variant of Python specifically designed to be statically compilable while retaining a lot of the "useful" dynamic parts of Python. It consists of: an interpreter (so that you can have the usual nice "development experience" that you have in Python) a compiler (for speed) The documentation is very scarce at the moment, but the best source to understand the ideas behind SPy are: blog post Inside SPy, part 1: Motivations and Goals. blog post Inside SPy, part 2: Language semantics. PyCon Italy 2025 talk: slides and recording. PyCon US 2024 talk: slides and recording. Additional info can be found on: Antonio Cuni's blog.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.