liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.45k stars 223 forks source link

pyminify() for code in strings (not from file) #74

Open NiklasRosenstein opened 8 years ago

NiklasRosenstein commented 8 years ago

It would be great if pyminify() could also work with code in strings somehow, not just read from files.

covataamos commented 7 years ago

That's what I came to ask for (or something related) - the ability to call the minifier from inside a Python script, so the result can be fetched as a string (e.g. for AWS Delta Python code in CloudFormation).