A universal Apple Push Notification Service (APNS) provider.
Project description
Features:
* XML-RPC Based, works with any client in any language
* Native Python API with Django and Pylons support
* Scalable, fast and easy to distribute behind a proxy
* Based on Twisted
* Multi-application and dual environment support
* Simplified feedback interface
pyapns is an APNS provider that you install on your server and access through XML-RPC.
To install you will need Python, Twisted_ and pyOpenSSL_. It's also recommended to
install `python-epoll`_ for best performance (if epoll is not available, like on
Mac OS X, you may want to use another library, like `py-kqueue`_. If you like
easy_install try (it should take care of the dependancies for you)::
$ sudo pip install pyapns
pyapns is a service that runs persistently on your machine. To start it::
$ twistd -r epoll web --class=pyapns.server.APNSServer --port=7077
To get started right away, use the included client::
$ python
>>> from pyapns import configure, provision, notify
>>> configure({'HOST': 'http://localhost:7077/'})
>>> provision('myapp', open('cert.pem').read(), 'sandbox')
>>> notify('myapp', 'hexlified_token_str', {'aps':{'alert': 'Hello!'}})
A lot more documentation and the issue tracker can be found on the `github page
<http://github.com/samuraisam/pyapns>`.
* XML-RPC Based, works with any client in any language
* Native Python API with Django and Pylons support
* Scalable, fast and easy to distribute behind a proxy
* Based on Twisted
* Multi-application and dual environment support
* Simplified feedback interface
pyapns is an APNS provider that you install on your server and access through XML-RPC.
To install you will need Python, Twisted_ and pyOpenSSL_. It's also recommended to
install `python-epoll`_ for best performance (if epoll is not available, like on
Mac OS X, you may want to use another library, like `py-kqueue`_. If you like
easy_install try (it should take care of the dependancies for you)::
$ sudo pip install pyapns
pyapns is a service that runs persistently on your machine. To start it::
$ twistd -r epoll web --class=pyapns.server.APNSServer --port=7077
To get started right away, use the included client::
$ python
>>> from pyapns import configure, provision, notify
>>> configure({'HOST': 'http://localhost:7077/'})
>>> provision('myapp', open('cert.pem').read(), 'sandbox')
>>> notify('myapp', 'hexlified_token_str', {'aps':{'alert': 'Hello!'}})
A lot more documentation and the issue tracker can be found on the `github page
<http://github.com/samuraisam/pyapns>`.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyapns-0.4.1.tar.gz
(14.1 kB
view details)
File details
Details for the file pyapns-0.4.1.tar.gz
.
File metadata
- Download URL: pyapns-0.4.1.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48477d53d5bde7f4abb798333022f34e8d32fad24c9bb4dffdf4f43fd471c889 |
|
MD5 | 15c564419c6940ebeb2817cc52ba0444 |
|
BLAKE2b-256 | cb2e29d6f9d0ae2f6effb4260d5d1e9786dc27106a56e7bb3e6890e409ae748c |