Skip to content

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:

  1. an interpreter, for the usual nice Python development experience;
  2. 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

Join the community