ScraperWiki box utility library


Keywords
swutils
License
MIT
Install
pip install swutils==0.6.2

Documentation

swutils

Introduction

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...

Requirements

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:

Installation

(You are using a virtualenv, right?)

pip install swutils

Usage

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)

Scripts

swutils 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

manage lint
manage test

Or if make is more your speed...

make lint
make test

Contributing

View CONTRIBUTING.rst

License

swutils is distributed under the MIT License.