question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minify recursively

See original GitHub issue

It’s probably a hard feature request, but would be great run “pyminify -r hello.py” to minify the file & the libraries its using

e.g. for projects with a lot of dependencies which want to have a .exe or even a .apk, as kivy projects (they tend to be much bigger than normal apks)

is it viable?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dflookcommented, Apr 10, 2022

2.6.0 has been released which allows specifying a directory as the path to process. All files ending in .py below that directory will be minified in place.

2reactions
phorwardcommented, Feb 22, 2021

@ntaraujo I would appreciate this function, too.

Anyway, as a quick an dirty solution, you can also run

for py in `find . -name "*.py"`; do echo "Minifying $py..."; pyminify --remove-literal-statements $py > $py.min; mv $py.min $py; done

from a shell to minify any Python files in the current directory in-place.

Read more comments on GitHub >

github_iconTop Results From Across the Web

recursive-minify - npm
Start using recursive-minify in your project by running `npm i recursive-minify`. There are no other projects in the npm registry using ...
Read more >
pitufo | Small app to recursively walk a directory and prettify ...
A small application that will walk the given path and replace the content of every json file found. The file will either be...
Read more >
Minify recursive | npm.io
Minify javascript files on a folder recursively. js minifyesbuild minifyminify recursivejsmin. 1.0.0 • Published 1 year ago.
Read more >
Recursively minify PHP files using a shell script - Cody Bonney
Below is a simple Shell Script I wrote that creates a copy of a directory and minifies all of the PHP files within...
Read more >
Minify directories containing CSS and JS recursively with Yui ...
I have JS and CSS files scattered around many directories and sub-directories. I just want to specify the top project folder, inside which ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found