halib 0.1.28__tar.gz → 0.1.29__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {halib-0.1.28/halib.egg-info → halib-0.1.29}/PKG-INFO +5 -1
- {halib-0.1.28 → halib-0.1.29}/README.md +4 -0
- {halib-0.1.28 → halib-0.1.29}/halib/tele_noti.py +7 -2
- {halib-0.1.28 → halib-0.1.29/halib.egg-info}/PKG-INFO +5 -1
- {halib-0.1.28 → halib-0.1.29}/halib.egg-info/requires.txt +1 -0
- {halib-0.1.28 → halib-0.1.29}/setup.py +1 -1
- {halib-0.1.28 → halib-0.1.29}/.gitignore +0 -0
- {halib-0.1.28 → halib-0.1.29}/GDriveFolder.txt +0 -0
- {halib-0.1.28 → halib-0.1.29}/LICENSE.txt +0 -0
- {halib-0.1.28 → halib-0.1.29}/guide_publish_pip.pdf +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/__init__.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/cuda.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/filetype/__init__.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/filetype/csvfile.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/filetype/jsonfile.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/filetype/textfile.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/filetype/videofile.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/filetype/yamlfile.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/listop.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/online/__init__.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/online/gdrive.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/online/gdrive_mkdir.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/online/gdrive_test.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/online/projectmake.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/plot.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/system/__init__.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/system/cmd.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib/system/filesys.py +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib.egg-info/SOURCES.txt +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib.egg-info/dependency_links.txt +0 -0
- {halib-0.1.28 → halib-0.1.29}/halib.egg-info/top_level.txt +0 -0
- {halib-0.1.28 → halib-0.1.29}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: halib
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.29
|
4
4
|
Summary: Small library for common tasks
|
5
5
|
Author: Hoang Van Ha
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
@@ -15,6 +15,10 @@ License-File: LICENSE.txt
|
|
15
15
|
|
16
16
|
Helper package for coding and automation
|
17
17
|
|
18
|
+
**Version 0.1.29**
|
19
|
+
|
20
|
+
+ for `tele_noti` module, `kaleido==0.1.*` is required for plotly since `kaleido 0.2.*` is not working (taking for ever to generate image)
|
21
|
+
---
|
18
22
|
**Version 0.1.24**
|
19
23
|
|
20
24
|
+ rename `sys` to `system` to avoid conflict with built-in `sys` module
|
@@ -1,5 +1,9 @@
|
|
1
1
|
Helper package for coding and automation
|
2
2
|
|
3
|
+
**Version 0.1.29**
|
4
|
+
|
5
|
+
+ for `tele_noti` module, `kaleido==0.1.*` is required for plotly since `kaleido 0.2.*` is not working (taking for ever to generate image)
|
6
|
+
---
|
3
7
|
**Version 0.1.24**
|
4
8
|
|
5
9
|
+ rename `sys` to `system` to avoid conflict with built-in `sys` module
|
@@ -82,7 +82,11 @@ def compose_message_and_img_path(
|
|
82
82
|
):
|
83
83
|
context_msg = f">> Project: {project} \n>> File: {target_file} \n>> Last {num_last_lines} lines:"
|
84
84
|
msg_df = get_watcher_message_df(target_file, num_last_lines)
|
85
|
-
|
85
|
+
try:
|
86
|
+
img_path = df2img(msg_df, output_img_dir, decimal_places, out_img_scale)
|
87
|
+
except Exception as e:
|
88
|
+
pprint(f"Error: {e}")
|
89
|
+
img_path = None
|
86
90
|
return context_msg, img_path
|
87
91
|
|
88
92
|
|
@@ -112,7 +116,8 @@ async def send_to_telegram(cfg_dict):
|
|
112
116
|
)
|
113
117
|
pprint('Sending message to telegram...')
|
114
118
|
await bot.send_message(text=context_msg, chat_id=chat_id)
|
115
|
-
|
119
|
+
if img_path:
|
120
|
+
await bot.send_photo(chat_id=chat_id, photo=open(img_path, "rb"))
|
116
121
|
except Exception as e:
|
117
122
|
pprint(f'Error: {e}')
|
118
123
|
pprint('Message not sent to telegram')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: halib
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.29
|
4
4
|
Summary: Small library for common tasks
|
5
5
|
Author: Hoang Van Ha
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
@@ -15,6 +15,10 @@ License-File: LICENSE.txt
|
|
15
15
|
|
16
16
|
Helper package for coding and automation
|
17
17
|
|
18
|
+
**Version 0.1.29**
|
19
|
+
|
20
|
+
+ for `tele_noti` module, `kaleido==0.1.*` is required for plotly since `kaleido 0.2.*` is not working (taking for ever to generate image)
|
21
|
+
---
|
18
22
|
**Version 0.1.24**
|
19
23
|
|
20
24
|
+ rename `sys` to `system` to avoid conflict with built-in `sys` module
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|