pyminify
pyminify copied to clipboard
Compress a Python script to a command-line one-liner
pyminify
I put this in a repository because I constantly forget to save this, and I find myself needing it every now and again.
This code takes a Python script file and converts it into a compressed, one line command to run via python -c with strings put together with chr.