0 purchases
swutils 0.11.1
# swutils## Introductionswutils is a Python library for interacting with [ScraperWiki](https://scraperwiki.com/products/data-science-platform) boxes.With swutils, you can- Schedule jobs to run on daily basis- Get email notifications if a job fails- and much more...## Requirementsswutils has been tested on the following configuration:- MacOS X 10.9.5- Python 2.7.10swutils requires the following in order to run properly:- [Python >= 2.7](http://www.python.org/download) (MacOS X comes with python preinstalled)## Installation(You are using a [virtualenv](http://www.virtualenv.org/en/latest/index.html), right?) pip install swutils## Usage```pythonimport swutilsjob = lambda: 'Code to update SW database'exc_handler = swutils.ExceptionHandler('[email protected]').handlerswutils.run_or_schedule(job, True, exc_handler)```## Scriptsswutils comes with a built in task manager `manage.py` and a `Makefile`.### Setup pip install -r dev-requirements.txt### Examples*Run python linter and nose tests*```bashmanage lintmanage test```Or if `make` is more your speed...```bashmake lintmake test```## ContributingView [CONTRIBUTING.rst](https://github.com/reubano/swutils/blob/master/CONTRIBUTING.rst)## Licenseswutils is distributed under the [MIT License](http://opensource.org/licenses/MIT).
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.