https://github.com/metno/loop_wrapper
loop_wrapper --cpu all 20150101 20150315 do_something_usefull {d:%Y%m%d}
https://github.com/metno/loop_wrapper
daterange job-control loop-wrapper looping parallel-run scripting
Last synced: about 19 hours ago
JSON representation
loop_wrapper --cpu all 20150101 20150315 do_something_usefull {d:%Y%m%d}
- Host: GitHub
- URL: https://github.com/metno/loop_wrapper
- Owner: metno
- License: gpl-2.0
- Created: 2015-05-20T19:17:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-10T12:30:30.000Z (about 2 years ago)
- Last Synced: 2024-05-10T13:39:55.346Z (about 2 years ago)
- Topics: daterange, job-control, loop-wrapper, looping, parallel-run, scripting
- Language: Python
- Homepage: https://loop-wrapper.readthedocs.io/
- Size: 141 KB
- Stars: 0
- Watchers: 52
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/metno/loop_wrapper)
[](https://coveralls.io/github/metno/loop_wrapper?branch=master)
``loop_wrapper`` will help iterate commands and scripts over a range of dates, and parallelize the runs.
Typical usage:
The following will run ``my_script.py`` (could be .sh, .pl, .exe, etc...) at all specified dates, using 3 cpus on your machine:
[$] loop_wrapper --cpu 3 20150101 20150315 script.py {d:}
my_script.py 20150101
my_script.py 20150102
....
my_script.py 20150315
For full documentation, and more cool features, see:
https://loop-wrapper.readthedocs.io/
and
``loop_wrapper -h``
For questions, bug reports and feature requests:
https://github.com/metno/loop_wrapper
Maintained since 2013 by Thomas Lavergne (Norwegian Meteorological Institute).
Licensed under GPLv2