Python client for Pushwoosh
Project description
Pushwoosh Python Library
Supported API Version: 1.3
Getting Started
Typical usage often looks like this:
#!/usr/bin/env python from pypushwoosh.client import PushwooshClient from pypushwoosh.command import CreateTargetedMessageCommand from pypushwoosh.filter import ApplicationFilter command = CreateTargetedMessageCommand() command.auth = 'AUTH_TOKEN' command.devices_filter = ApplicationFilter('APP-CODE') command.content = "Hello world!" client = PushwooshClient() print client.invoke(command)
Features
At the moment, pypushwoosh supports:
Message commands:
CreateMessageForApplicationCommand
CreateMessageForApplicationGroupCommand
CreateTargetedMessageCommand
CompileFilterCommand
DeleteMessageCommand
Device commands:
RegisterDeviceCommand
GetTagsCommand
SetTagsCommand
SetBadgeCommand
PushStatCommand
GetNearestZoneCommand
For targeted messages, supports:
ApplicationFilter and ApplicationGroupFilter filters
Tag filters: IntegerTagFilter, StringTagFilter, ListTagFilter, DateTagFilter, DaysTagFilter, BooleanTagFilter
Tags filters by application
Operations filters: UnionFilter, IntersectFilter, SubtractFilter
Installation
Install via pip:
$ pip install pypushwoosh
Install from source:
$ git clone git://github.com/Pushwoosh/pushwoosh-python-lib.git $ cd pushwoosh-python-lib $ python setup.py install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pypushwoosh-0.3.1.tar.gz
.
File metadata
- Download URL: pypushwoosh-0.3.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c87c2253a77973d3441203ce8af278bc2877de52e20cef74d7f328f1a074ee |
|
MD5 | 8662b858ae24f04837cd2d2a4673b589 |
|
BLAKE2b-256 | 6dceeecc5048245af47e148556ab6e4cba3f426ca166ab700c359254a2397ad3 |
File details
Details for the file pypushwoosh-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pypushwoosh-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d80171f124b8833388425ebe69f71a827719df9e95dd0d47f5d0e92796b0f03 |
|
MD5 | 0d447f701bc3c019616a78ecb0f7464a |
|
BLAKE2b-256 | 78f514aa741539a22a1a44a222786b3ffe5c92b84e95e6f533fd41c3780219a5 |