swutils is a Python library for interacting with ScraperWiki boxes.
With swutils, you can
- Schedule jobs to run on daily basis
- Get email notifications if a job fails
- and much more...
swutils has been tested on the following configuration:
- MacOS X 10.9.5
- Python 2.7.10
swutils requires the following in order to run properly:
- Python >= 2.7 (MacOS X comes with python preinstalled)
(You are using a virtualenv, right?)
pip install swutils
import swutils
job = lambda: 'Code to update SW database'
exc_handler = swutils.ExceptionHandler('reubano@gmail.com').handler
swutils.run_or_schedule(job, True, exc_handler)
swutils comes with a built in task manager manage.py
and a Makefile
.
pip install -r dev-requirements.txt
Run python linter and nose tests
manage lint
manage test
Or if make
is more your speed...
make lint
make test
View CONTRIBUTING.rst
swutils is distributed under the MIT License.