Skip to main content

A very simple Python client for the PushingBox Notification service API.

Project description

# pushingbox A very simple Python client for the [PushingBox](https://www.pushingbox.com/index.php) Notification service API.

## Installation Simply install using pip as follows:

pip install PushingBox

or clone this repo and run the following:

python setup.py install

You will need to install the [requests](http://python-requests.org) module (pip install -r requirements.txt).

## Usage This is extremely simple. First create a ‘Scenario’ via the [PushingBox dashboard](https://www.pushingbox.com/scenarios.php). This will generate a DeviceID for your scenario, for example: v0123456789ABCDE. To use this scenario with this python library is as easy as the following:

` >>> from PushingBox import PushingBox >>> pbox=PushingBox() >>> pbox.push('v0123456789ABCDE') `

If your Scenario contains variables, as per the following example from the [PushingBox API page](https://www.pushingbox.com/api.php):

The $room$ temperature is $temperature$ degrees

then you can pass these variables as keyword arguments to the push() method as follows:

>>> pbox.push(‘v0123456789ABCDE’, room=’kitchen’, temperature=‘23’)

Its as simple as that.

## Compatability So far, this module has been tested with Python 3.5 on macOS Sierra (10.12.1). As this is an extemely simple pure python module, I see no reason why it won’t work anywhere and everywhere, but if doesn’t: let me know (preferably with a stack trace!).

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
PushingBox-0.1.3-py2.py3-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel 3.5

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page