Lola runs small Python scripts quickly
Lola runs small Python scripts quickly.
The startup time for the Python interpreter is fairly light, but it can become noticable when running small scripts repeatedly. Lola can reduce this overhead by starting one interpreter, which you can reuse to repeatedly run scripts.
with lola.Runner() as runner: for i in xrange(1000): runner.call(['myscript.py', str(i)])
The API implements the call(), check_call() and check_output() functions from the standard library’s subprocess module.
The name comes from “Lola rennt”, aka “Run Lola Run”: http://en.wikipedia.org/wiki/Run_Lola_Run
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size lola-0.1.3.tar.gz (5.7 kB)||File type Source||Python version None||Upload date||Hashes View|