pyskins 🎁🤓🟥
Dress your Python in emoji, and it still runs. Christmas, Faces, or total obfuscation. Edit it, watch it change, then run it right here in your browser.
Open the playground ↓ Code on GitHub
Runs fully client-side with a WebAssembly Python. No install, no server, nothing leaves your machine.
Playground
Write Python, wear a skin, run it
Type Python on the left, see it in a skin in the middle, and press Run to execute it on the right. It all happens in your browser. The first Run loads a Python runtime once (~6 MB).
Press ▶ Run to execute. The output is identical whether the file wears a skin or not. A skin is only a skin.
This browser preview swaps whole names and skips strings & comments for the live view, enough to show what each mode does. The real pyskins uses Python's own parser, so every file converts back to the exact original and runs with plain python. The output console above runs your actual Python with a real interpreter (Pyodide / WebAssembly).
How it works
A skin swaps Python's keywords and everyday names for emoji. Your strings, comments and spacing stay the same.
The first line, # coding: pyskins-christmas, tells Python which skin the file wears. With pyskins installed, python gift.py just runs it.
Obfuscation hides everything: names, keywords and strings. The file still runs, and the key gives your code back.
Use it
pip install pyskins
pyskins --help # all the commands
One file. It changes the file in place; add -o to keep a copy.
pyskins apply christmas app.py # dress app.py in place
pyskins undo app.py # plain Python back
pyskins apply ./my-skin.json app.py # your own skin, by path
A whole project:
find myapp -name '*.py' -exec pyskins apply christmas {} \; # dress every Python file
python myapp/main.py # run it like before
find myapp -name '*.py' -exec pyskins undo {} \; # plain Python back
Obfuscate one file:
pyskins obfuscate app.py --skin christmas # hide everything, keep the shape
pyskins undo app.py --skin app.json # put it all back, with the key
Obfuscate a whole project:
pyskins obfuscate myapp/ -o myapp_secret/ # hide every file, one key
pyskins add myapp_secret.json # install the key once
python myapp_secret/main.py # runs like the original
pyskins undo myapp_secret/ -o myapp_back/ --skin myapp_secret.json # get it all back