Skip to main content

xinge-api-python

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)
else:
    print "push successfully!"

Publish

python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

Metadata

Release files for xinge 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xinge 2.0.4
File Size Uploaded Provenance Actions
xinge-2.0.4.tar.gz 12.4 kB Without provenance Details for xinge-2.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xinge 2.0.4
File Interpreter ABI Platform Actions
xinge-2.0.4-py3-none-any.whl Python 3 none any Details for xinge-2.0.4-py3-none-any.whl

Total release size: 28.6 kB

Release files / xinge-2.0.4.tar.gz

Download URL xinge-2.0.4.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
173ee08a737e498de855749842987e71e4fa4775a929de0f828cf0050456b16f
BLAKE2b-256 checksum
How to use checksums
07526925f6ddd1f0cdbc39acc4134fd58b314aeccff26e4c3db71580395eba28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / xinge-2.0.4-py3-none-any.whl

Download URL xinge-2.0.4-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d2dd7eeba8a2e30c2edf21eeba6e523eedd4b87ccdd0b36adb25d547018700e
BLAKE2b-256 checksum
How to use checksums
cbac994f84504f29fba8d3c50e7cb0cf3d7c5da3ee0342afe416c607fd4fcc3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for xinge 2.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page