Why convert LLSP to PY?
.llsp is a word-block (Scratch-style) SPIKE project, while .py is plain Python text you can run in the SPIKE App's Python mode, in an editor, or version-control with git. People convert to Python for real code control, reuse, and readable diffs.
How to convert LLSP to PY
pyspikon
Unzip the .llsp, then run python pyspikon.py path-to-file new-file-path to generate a .py from the project's project.json. Note the tool is deprecated and can be glitchy.
LEGO Education SPIKE App (Python mode)
Open a new Python project in the SPIKE App and re-create the logic as code; this is the most reliable way to get clean, runnable .py.
flippertools
Use this command-line toolkit for SPIKE/MINDSTORMS project files to inspect and pull the program out of the .llsp before hand-porting it to Python.
About these formats
An .llsp file is a project saved by the LEGO Education SPIKE App version 2, holding the block-based or Python program a student built for a SPIKE Prime or SPIKE Essential robot. It is a ZIP…
Open .LLSP details →A .py file is a Python source code file - plain text containing a program or script written in the Python language. To read the code, open it in any text editor. To run it, install Python…
Open .PY details →Quality & what to watch
- Converters do not cover every block - Events and My Blocks are commonly skipped and must be rewritten manually.
- pyspikon is marked deprecated, so its output may need cleanup before it runs on the hub.
- A word-block project rarely maps one-to-one to idiomatic Python; treat the output as a starting draft.
Frequently asked questions
Is pyspikon still maintained?
Which blocks fail to convert?
Can I run the .py on my SPIKE hub?
Where is the actual program stored in a .llsp?
project.json, which the converters parse to build the Python file.