Skip to main content

ScraperWiki box utility library

Project description

# swutils

## Introduction

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

## 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:

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

```python
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*

```bash
manage lint
manage test
```

Or if `make` is more your speed...

```bash
make lint
make test
```

## Contributing

View [CONTRIBUTING.rst](https://github.com/reubano/swutils/blob/master/CONTRIBUTING.rst)

## License

swutils is distributed under the [MIT License](http://opensource.org/licenses/MIT).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

swutils-0.11.1-py2-none-any.whl (8.4 kB view details)

Uploaded Python 2

File details

Details for the file swutils-0.11.1-py2-none-any.whl.

File metadata

File hashes

Hashes for swutils-0.11.1-py2-none-any.whl
Algorithm Hash digest
SHA256 994b72c452e97b8ef805239c13bf6907829a0fced0cc8c0041d292064da3960c
MD5 0002a84a4578678d952e73cb7b15307f
BLAKE2b-256 bfc01aff785421dfa7247dd4296811ce4638eabc7d8709119310606381173388

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page