Skip to main content

Python Huawei Cloud Messaging

Wrapper of huawei cloud messaging (Push Kit) for sending push notification using python.

Home page

https://pypi.org/project/pyhcm/

Install

pip install pyhcm

Example

Send notification to topic

CLIENT_ID = "00000000"
CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000"

HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_topic_subscribers('test_topic', 'test title', 'test body')

Send notification to user

CLIENT_ID = "00000000"
CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000"

HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_single_device('token_xyz', 'test title', 'test body')

Metadata

Release files for pyhcm 1.0.6.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 pyhcm 1.0.6.4
File Size Uploaded Provenance Actions
pyhcm-1.0.6.4.tar.gz 2.6 kB Without provenance Details for pyhcm-1.0.6.4.tar.gz

Release files / pyhcm-1.0.6.4.tar.gz

Download URL pyhcm-1.0.6.4.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
81a642a76f21864876e56b72c09f22b541d9832748a8ae2c7e47ded2016ded88
BLAKE2b-256 checksum
How to use checksums
ba68bcaf31cdf2689988b98baa80c2a898ef281b1da249859e5ac15ccffb2df9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Security for pyhcm 1.0.6.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