-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__main__.py
More file actions
38 lines (26 loc) · 853 Bytes
/
__main__.py
File metadata and controls
38 lines (26 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import click
from . import register_parser
from . import PushoverOpenClient, PushoverOpenClientRealTime
@click.group
def cli():
pass
@cli.command()
def json():
@register_parser
def return_json(raw_data):
import json
json_notification = json.dumps(raw_data)
print(json_notification)
#return json_notification
client = PushoverOpenClientRealTime()
client.run_forever()
if __name__ == "__main__":
cli()
#pushover_open_client = PushoverOpenClient()
#pushover_open_client.login()
#pushover_open_client.register_device()
#pushover_open_client.download_messages()
#pushover_open_client.delete_all_messages()
#pushover_realtime_client =\
# PushoverOpenClientRealTime(pushover_open_client=pushover_open_client)
#pushover_realtime_client.run_forever()