SPy¶
SPy is a variant of Python designed to be statically compilable while retaining many of the "useful" dynamic parts of Python. It comes with:
- an interpreter, for the usual nice Python development experience;
- a compiler, for speed: it targets native executables and WebAssembly.
Try it in your browser Install Get started Source code
Work in progress
SPy is under heavy development and this documentation is still being written. Contributions are welcome.
Find your way around¶
The documentation is organized in four parts, following the Diátaxis framework. Pick the one that matches what you need right now.
| I want to... | Go to |
|---|---|
| learn SPy by doing | Tutorials |
| solve a specific problem | How-to guides |
| look up a precise fact | Reference |
| understand why SPy works this way | Explanation |
Are you using an LLM to write SPy code? The curated examples and the language/API reference are also available as plain Markdown files, generated from this documentation.
Learn more about the ideas behind SPy¶
- Blog post series Inside SPy by Antonio Cuni: part 1: Motivations and Goals, part 2: Language semantics.
- PyCon Italy 2025 talk: slides and recording.
- PyCon US 2024 talk: slides and recording.
- More posts on Antonio Cuni's blog.
- A peek into a possible future of Python in the browser by Łukasz Langa.
- The roadmap.
Join the community¶
- Discord server
- Community calls: monthly, on the first Wednesday of the month at 17:30 CET (Google calendar, Discord event).