Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyapns

How to install pyapns

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyapns
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.4.0 Available View build log
0.3.2 Available View build log
Windows (64-bit)
0.4.0 Available View build log
0.3.2 Available View build log
Mac OS X (10.5+)
0.4.0 Available View build log
0.3.2 Available View build log
Linux (32-bit)
0.4.0 Available View build log
0.3.2 Available View build log
Linux (64-bit)
0.4.0 Available View build log
0.3.2 Available View build log
Web
 
Author
License
MIT
Imports
Lastest release
version 0.4.0 on Feb 15th, 2012

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

Docutils System Messages

System Message: ERROR/3 (<string>, line 10); backlink

Unknown target name: "twisted".

System Message: ERROR/3 (<string>, line 10); backlink

Unknown target name: "pyopenssl".

System Message: ERROR/3 (<string>, line 10); backlink

Unknown target name: "python-epoll".

System Message: ERROR/3 (<string>, line 10); backlink

Unknown target name: "py-kqueue".

Subscribe to package updates

Last updated Feb 15th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.