Skip to content

Commit e51cc54

Browse files
authored
Refactored setup.py (#6)
1 parent 295b3bf commit e51cc54

File tree

6 files changed

+60
-2
lines changed

6 files changed

+60
-2
lines changed

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# file GENERATED by distutils, do NOT edit
2+
README
23
setup.cfg
34
setup.py
45
pyhcm/__init__.py

pyhcm.egg-info/PKG-INFO

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Metadata-Version: 2.1
2+
Name: pyhcm
3+
Version: 1.0.6.3
4+
Summary: Wrapper of huawei cloud messaging (Push Kit) for sending push notification using python.
5+
Home-page: https://github.com/umartinez22
6+
Author: Ulises Martinez Adon
7+
Author-email: umartinezadon@outlook.com
8+
License: MIT
9+
Download-URL: https://github.com/umartinez22/python-huawei-cloud-messaging/archive/v_1.0.6.3.tar.gz
10+
Description: # Python Huawei Cloud Messaging
11+
12+
Wrapper of huawei cloud messaging [(Push Kit)](https://developer.huawei.com/consumer/en/hms/huawei-pushkit/) for sending push notification using python.
13+
14+
## Home page
15+
16+
https://pypi.org/project/pyhcm/
17+
18+
## Install
19+
```pip install pyhcm```
20+
21+
## Example
22+
23+
### Send notification to topic
24+
```
25+
CLIENT_ID = "00000000"
26+
CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000"
27+
28+
HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_topic_subscribers('test_topic', 'test title', 'test body')
29+
```
30+
31+
### Send notification to user
32+
33+
```
34+
CLIENT_ID = "00000000"
35+
CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000"
36+
37+
HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_single_device('token_xyz', 'test title', 'test body')
38+
```
39+
Keywords: Huawei,cloud,messaging,notification
40+
Platform: UNKNOWN
41+
Classifier: Development Status :: 5 - Production/Stable
42+
Classifier: Intended Audience :: Developers
43+
Classifier: Topic :: Software Development :: Build Tools
44+
Classifier: License :: OSI Approved :: MIT License
45+
Classifier: Programming Language :: Python
46+
Description-Content-Type: text/markdown

pyhcm.egg-info/SOURCES.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
README
2+
setup.cfg
3+
setup.py
4+
pyhcm/__init__.py
5+
pyhcm/pyhcm.py
6+
pyhcm.egg-info/PKG-INFO
7+
pyhcm.egg-info/SOURCES.txt
8+
pyhcm.egg-info/dependency_links.txt
9+
pyhcm.egg-info/top_level.txt

pyhcm.egg-info/dependency_links.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

pyhcm.egg-info/top_level.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyhcm

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from distutils.core import setup
1+
from setuptools import setup
22
from os import path
33

4-
version = '1.0.6.2'
4+
version = '1.0.6.3'
55
long_description = ''
66

77
current_directory = path.abspath(path.dirname(__file__))

0 commit comments

Comments
 (0)