用于向Android和iOS设备发送推送通知的包。GNU GPL V3。
pushnotif的Python项目详细描述
pushnotify是一个用于发送推送通知的包。目前 支持运行notify my android和pushover以及ios的android设备 装置运行推倒和徘徊
见
有关这些应用程序的详细信息。
开发
pushnotify的所有开发都在bitbucket上进行:
你可以在twitter上关注这个项目:
要开始,您可以执行以下操作:
$ hg clone https://bitbucket.org/jgoettsch/py-pushnotify/ $ cd py-pushnotify $ pip install -r requirements_dev.txt $ python setup.py develop
如果发现错误,请创建问题通知单:
要运行测试套件,您必须创建三个模块:
pushnotify/tests/nmakeys.py:
This file must contain two global variables: API_KEYS and DEVELOPER_KEY. API_KEYS is a list containing at least one valid API key as a string. DEVELOPER_KEY is a string containing a valid developer key.
pushnotify/tests/prowlkeys.py:
This file must contain two global variables: API_KEYS and PROVIDER_KEY. API_KEYS is a list containing at least one valid API key as a string. PROVIDER_KEY is a string containing a valid provider key. REG_TOKEN is a valid registration token that has already been validated through the retrieve_token/retrieve_apikey process.
pushnotify/tests/pushoverkeys.py:
This file must contain two global variables: TOKEN and USER. TOKEN is a string containing a valid API token. USER is a dictionary whose keys are strings containing valid user identifiers. The key values are lists containing strings, where each string contains a valid device identifier for the given API token. There must be one API token, and it must have one device indentifier.
安装
如果您已经下载了pushnotify,请运行以下命令 此目录中的命令:
$ python setup.py install
如果你还没有下载pushnotify,这将更容易做到 以下内容:
$ pip install pushnotify
两种方法都将在当前环境中安装pushnotify
变更日志
有关更改的完整历史记录,请参见提交历史记录:
0.5.1版
- 许可证更改:此版本和以后的版本现在在 GNU GPL v3
- 现在使用requests包而不是urllib2
版本0.5
- 向后不兼容的更改:每个客户端现在都符合 标准接口,可以用get_客户机实例化 工厂方法
版本0.4
- 现在,每个客户端都会记录http get和post操作
0.3.1版
- prowl.client.retrieve_token和prowl.client.retrieve_apikey现在 如果指定了 提供程序密钥无效
0.3版
- 增加了对漫游的支持:http://www.prowlapp.com/
0.2.1版
- 修复了开发人员密钥未与notify my一起发送的问题 Android验证
版本0.2
- 添加了对pushover的支持:https://pushover.net/
版本0.1
- 添加了对通知我的android的支持:https://www.notifymyandroid.com/