API wrapper around pushalot service
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pushalot
tests
.coveragerc
.gitignore
LICENSE
README.md
setup.py

README.md

Pushalot

Wrapper around pushalot.com API.

Pushalot is a platform for receiving custom push notifications to connected devices running Windows Phone or Windows 8. Custom means that those push notifications can be sent from virtually any source, as long as that source can interact with our open REST API.

Installation

pip install pushalot

Usage

from pushalot import Pushalot
api = Pushalot(token='your-token-here')
api.send(title='Testing', body='Hey!')

Or using factory:

from pushalot import PushalotFactory
api = PushalotFactory.create(token='your-token-here')

You can provide custom 'transport' or API version. Right now there is only one API version, and one transport:

from pushalot import PushalotFactory
from pushalot.transport import HTTPTransport
from pushalot.apis import APILatest
api = PushalotFactory(
    token='your-token-here',
    api=APILatest(),
    transport=HTTPTransport()
)

This code snippet do the same that above snippets, but shows how some parts can be changed to suit your needs.

Tests

python setup.py test

coverage:

pip install coverage
coverage run -m unittest discover

License

Released under MIT License. See the bundled LICENSE file for details.