Skip to main content

xinge Push API for Python(

Project description


PyPI version


欢迎使用信鸽 ServerSDK - Python 版本封装的开发包,具有最新版本的信鸽 API 功能。


  • Python 3.7
  • 需要使用到 requests
➜  ~ pip install requests
  • 如需运行测试用例,需要安装 unittest
pip install unittest2

引用 SDK

  pip install xinge


from xinge_push import Xinge, Message

xinge = Xinge('app id', 'secret key')
message = Message(title="some title", content = "some content")
xinge.push_account(platform="android", account="some account", message=message)
ret_code, error_msg = xinge.push_account(platform="android", account="some account", message=message)
if ret_code:
    print "push failed! retcode: {}, msg: {}".format(ret_code, error_msg)
    print "push successfully!"


python3 sdist bdist_wheel
python3 -m twine upload dist/*

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xinge, version 2.0.3
Filename, size File type Python version Upload date Hashes
Filename, size xinge-2.0.3-py3-none-any.whl (16.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size xinge-2.0.3.tar.gz (12.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page