halib 0.1.30__tar.gz → 0.1.31__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.
Files changed (32) hide show
  1. {halib-0.1.30/halib.egg-info → halib-0.1.31}/PKG-INFO +1 -1
  2. {halib-0.1.30 → halib-0.1.31}/halib/tele_noti.py +6 -0
  3. {halib-0.1.30 → halib-0.1.31/halib.egg-info}/PKG-INFO +1 -1
  4. {halib-0.1.30 → halib-0.1.31}/setup.py +1 -1
  5. {halib-0.1.30 → halib-0.1.31}/.gitignore +0 -0
  6. {halib-0.1.30 → halib-0.1.31}/GDriveFolder.txt +0 -0
  7. {halib-0.1.30 → halib-0.1.31}/LICENSE.txt +0 -0
  8. {halib-0.1.30 → halib-0.1.31}/README.md +0 -0
  9. {halib-0.1.30 → halib-0.1.31}/guide_publish_pip.pdf +0 -0
  10. {halib-0.1.30 → halib-0.1.31}/halib/__init__.py +0 -0
  11. {halib-0.1.30 → halib-0.1.31}/halib/cuda.py +0 -0
  12. {halib-0.1.30 → halib-0.1.31}/halib/filetype/__init__.py +0 -0
  13. {halib-0.1.30 → halib-0.1.31}/halib/filetype/csvfile.py +0 -0
  14. {halib-0.1.30 → halib-0.1.31}/halib/filetype/jsonfile.py +0 -0
  15. {halib-0.1.30 → halib-0.1.31}/halib/filetype/textfile.py +0 -0
  16. {halib-0.1.30 → halib-0.1.31}/halib/filetype/videofile.py +0 -0
  17. {halib-0.1.30 → halib-0.1.31}/halib/filetype/yamlfile.py +0 -0
  18. {halib-0.1.30 → halib-0.1.31}/halib/listop.py +0 -0
  19. {halib-0.1.30 → halib-0.1.31}/halib/online/__init__.py +0 -0
  20. {halib-0.1.30 → halib-0.1.31}/halib/online/gdrive.py +0 -0
  21. {halib-0.1.30 → halib-0.1.31}/halib/online/gdrive_mkdir.py +0 -0
  22. {halib-0.1.30 → halib-0.1.31}/halib/online/gdrive_test.py +0 -0
  23. {halib-0.1.30 → halib-0.1.31}/halib/online/projectmake.py +0 -0
  24. {halib-0.1.30 → halib-0.1.31}/halib/plot.py +0 -0
  25. {halib-0.1.30 → halib-0.1.31}/halib/system/__init__.py +0 -0
  26. {halib-0.1.30 → halib-0.1.31}/halib/system/cmd.py +0 -0
  27. {halib-0.1.30 → halib-0.1.31}/halib/system/filesys.py +0 -0
  28. {halib-0.1.30 → halib-0.1.31}/halib.egg-info/SOURCES.txt +0 -0
  29. {halib-0.1.30 → halib-0.1.31}/halib.egg-info/dependency_links.txt +0 -0
  30. {halib-0.1.30 → halib-0.1.31}/halib.egg-info/requires.txt +0 -0
  31. {halib-0.1.30 → halib-0.1.31}/halib.egg-info/top_level.txt +0 -0
  32. {halib-0.1.30 → halib-0.1.31}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: halib
3
- Version: 0.1.30
3
+ Version: 0.1.31
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -116,14 +116,20 @@ async def send_to_telegram(cfg_dict, interval_in_sec):
116
116
  out_img_scale,
117
117
  output_img_dir,
118
118
  )
119
+ time_now = next_time = pd.Timestamp.now().strftime("%Y-%m-%d %H:%M:%S")
120
+ sep_line = "-" * 50
121
+ context_msg = f"{sep_line}\n>> Time: {time_now}\n{context_msg}"
119
122
  # calculate the next time to send message
120
123
  next_time = pd.Timestamp.now() + pd.Timedelta(seconds=interval_in_sec)
124
+ next_time = next_time.strftime("%Y-%m-%d %H:%M:%S")
125
+ next_time_info = f"Next msg: {next_time}"
121
126
  tele_console.rule()
122
127
  tele_console.print("[green] Send message to telegram [/green]")
123
128
  tele_console.print(f"[red] Next message will be sent at <{next_time}> [/red]")
124
129
  await bot.send_message(text=context_msg, chat_id=chat_id)
125
130
  if img_path:
126
131
  await bot.send_photo(chat_id=chat_id, photo=open(img_path, "rb"))
132
+ await bot.send_message(text=next_time_info, chat_id=chat_id)
127
133
  except Exception as e:
128
134
  pprint(f'Error: {e}')
129
135
  pprint('Message not sent to telegram')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: halib
3
- Version: 0.1.30
3
+ Version: 0.1.31
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.30",
11
+ version="0.1.31",
12
12
  author="Hoang Van Ha",
13
13
  author_email="hoangvanhauit@gmail.com",
14
14
  description="Small library for common tasks",
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