This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
forked from samuraisam/pyapns
-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
executable file
·64 lines (53 loc) · 2.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
DOC = \
"""
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>`.
"""
setup(
name="pyapns",
version="0.4.0",
description="A universal Apple Push Notification Service (APNS) provider.",
long_description=DOC,
author="Samuel Sutch",
author_email="samuraiblog@gmail.com",
license="MIT",
url="http://github.com/samuraisam/pyapns/tree/master",
download_url="http://github.com/samuraisam/pyapns/tree/master",
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'],
packages=['pyapns'],
package_data={},
install_requires=['Twisted>=8.2.0', 'pyOpenSSL>=0.10']
)