Stella
Reverse engineering

Decompile a Python EXE back to .py source

Your Python code, back out of the EXE.

Download StellaFree with the plan you already have.
You: I made this EXE years ago and lost the Python code. Get it back so I can edit it.
Stella:

On it. Unpacking the EXE.

Stella:

Done. Your code is in a RentSplit-source folder in Downloads, starting with rentsplit_app.py. It gives the same output as the EXE on every input I tried. Your old comments weren't kept inside, so there are none.

RentSplit-source

The short answer.

Stella (stella.sh) takes a Python EXE apart and gives you the .py files back, then checks they do the same as the EXE.

Stella does this on Windows, Mac and Linux.

What you get.

  1. Your .py files, ready to edit
  2. A check against the EXE
  3. Everything in one folder

Just ask.

I made this EXE years ago and lost the Python code. Get it back so I can edit it.

Paste it into Stella and press Enter.

Questions.

Does it work on any Python EXE?

It works on the usual kind, where Python was packed into one program.

How do I decompile a .pyc file from Python 3.12?

Give it to Stella and ask for the code. New versions like 3.12 trip up most decompilers, so Stella fixes what they get wrong.

Is Stella free?

Yes. Free with the ChatGPT or Claude plan you already have.

Can I do it without Stella?
  1. Download pyinstxtractor.py and run it on the EXE with the same Python version it was built with.
  2. Turn the .pyc files back into .py with PyLingual at pylingual.io, or pycdc.
  3. Fix any function that came out wrong, then run your .py and the EXE on the same inputs and compare.

Stella