halib 0.1.75__tar.gz → 0.1.77__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 (49) hide show
  1. {halib-0.1.75 → halib-0.1.77}/PKG-INFO +8 -9
  2. {halib-0.1.75 → halib-0.1.77}/README.md +1 -1
  3. {halib-0.1.75 → halib-0.1.77}/halib/research/perftb.py +11 -2
  4. {halib-0.1.75 → halib-0.1.77}/halib.egg-info/PKG-INFO +8 -9
  5. {halib-0.1.75 → halib-0.1.77}/halib.egg-info/requires.txt +6 -11
  6. {halib-0.1.75 → halib-0.1.77}/setup.py +1 -1
  7. {halib-0.1.75 → halib-0.1.77}/.gitignore +0 -0
  8. {halib-0.1.75 → halib-0.1.77}/GDriveFolder.txt +0 -0
  9. {halib-0.1.75 → halib-0.1.77}/LICENSE.txt +0 -0
  10. {halib-0.1.75 → halib-0.1.77}/MANIFEST.in +0 -0
  11. {halib-0.1.75 → halib-0.1.77}/guide_publish_pip.pdf +0 -0
  12. {halib-0.1.75 → halib-0.1.77}/halib/__init__.py +0 -0
  13. {halib-0.1.75 → halib-0.1.77}/halib/common.py +0 -0
  14. {halib-0.1.75 → halib-0.1.77}/halib/cuda.py +0 -0
  15. {halib-0.1.75 → halib-0.1.77}/halib/filetype/__init__.py +0 -0
  16. {halib-0.1.75 → halib-0.1.77}/halib/filetype/csvfile.py +0 -0
  17. {halib-0.1.75 → halib-0.1.77}/halib/filetype/jsonfile.py +0 -0
  18. {halib-0.1.75 → halib-0.1.77}/halib/filetype/textfile.py +0 -0
  19. {halib-0.1.75 → halib-0.1.77}/halib/filetype/videofile.py +0 -0
  20. {halib-0.1.75 → halib-0.1.77}/halib/filetype/yamlfile.py +0 -0
  21. {halib-0.1.75 → halib-0.1.77}/halib/online/__init__.py +0 -0
  22. {halib-0.1.75 → halib-0.1.77}/halib/online/gdrive.py +0 -0
  23. {halib-0.1.75 → halib-0.1.77}/halib/online/gdrive_mkdir.py +0 -0
  24. {halib-0.1.75 → halib-0.1.77}/halib/online/gdrive_test.py +0 -0
  25. {halib-0.1.75 → halib-0.1.77}/halib/online/projectmake.py +0 -0
  26. {halib-0.1.75 → halib-0.1.77}/halib/research/__init__.py +0 -0
  27. {halib-0.1.75 → halib-0.1.77}/halib/research/base_config.py +0 -0
  28. {halib-0.1.75 → halib-0.1.77}/halib/research/base_exp.py +0 -0
  29. {halib-0.1.75 → halib-0.1.77}/halib/research/dataset.py +0 -0
  30. {halib-0.1.75 → halib-0.1.77}/halib/research/metrics.py +0 -0
  31. {halib-0.1.75 → halib-0.1.77}/halib/research/perfcalc.py +0 -0
  32. {halib-0.1.75 → halib-0.1.77}/halib/research/plot.py +0 -0
  33. {halib-0.1.75 → halib-0.1.77}/halib/research/torchloader.py +0 -0
  34. {halib-0.1.75 → halib-0.1.77}/halib/research/wandb_op.py +0 -0
  35. {halib-0.1.75 → halib-0.1.77}/halib/rich_color.py +0 -0
  36. {halib-0.1.75 → halib-0.1.77}/halib/system/__init__.py +0 -0
  37. {halib-0.1.75 → halib-0.1.77}/halib/system/cmd.py +0 -0
  38. {halib-0.1.75 → halib-0.1.77}/halib/system/filesys.py +0 -0
  39. {halib-0.1.75 → halib-0.1.77}/halib/utils/__init__.py +0 -0
  40. {halib-0.1.75 → halib-0.1.77}/halib/utils/dataclass_util.py +0 -0
  41. {halib-0.1.75 → halib-0.1.77}/halib/utils/dict_op.py +0 -0
  42. {halib-0.1.75 → halib-0.1.77}/halib/utils/gpu_mon.py +0 -0
  43. {halib-0.1.75 → halib-0.1.77}/halib/utils/listop.py +0 -0
  44. {halib-0.1.75 → halib-0.1.77}/halib/utils/tele_noti.py +0 -0
  45. {halib-0.1.75 → halib-0.1.77}/halib/utils/video.py +0 -0
  46. {halib-0.1.75 → halib-0.1.77}/halib.egg-info/SOURCES.txt +0 -0
  47. {halib-0.1.75 → halib-0.1.77}/halib.egg-info/dependency_links.txt +0 -0
  48. {halib-0.1.75 → halib-0.1.77}/halib.egg-info/top_level.txt +0 -0
  49. {halib-0.1.75 → halib-0.1.77}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.75
3
+ Version: 0.1.77
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -12,8 +12,12 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE.txt
13
13
  Requires-Dist: arrow
14
14
  Requires-Dist: click
15
+ Requires-Dist: dataclass-wizard
15
16
  Requires-Dist: enlighten
17
+ Requires-Dist: itables
18
+ Requires-Dist: kaleido
16
19
  Requires-Dist: loguru
20
+ Requires-Dist: matplotlib
17
21
  Requires-Dist: more-itertools
18
22
  Requires-Dist: moviepy
19
23
  Requires-Dist: networkx
@@ -22,25 +26,20 @@ Requires-Dist: omegaconf
22
26
  Requires-Dist: opencv-python
23
27
  Requires-Dist: pandas
24
28
  Requires-Dist: Pillow
29
+ Requires-Dist: plotly
25
30
  Requires-Dist: Pyarrow
26
31
  Requires-Dist: pycurl
32
+ Requires-Dist: pygwalker
27
33
  Requires-Dist: python-telegram-bot
28
34
  Requires-Dist: requests
29
35
  Requires-Dist: rich
30
36
  Requires-Dist: scikit-learn
31
- Requires-Dist: matplotlib
32
37
  Requires-Dist: seaborn
33
- Requires-Dist: plotly
34
- Requires-Dist: pygwalker
35
38
  Requires-Dist: tabulate
36
- Requires-Dist: itables
37
39
  Requires-Dist: timebudget
38
40
  Requires-Dist: tqdm
39
41
  Requires-Dist: tube_dl
40
42
  Requires-Dist: wandb
41
- Requires-Dist: dataclass-wizard
42
- Requires-Dist: kaleido==0.1.*; sys_platform == "win32"
43
- Requires-Dist: kaleido; sys_platform == "linux"
44
43
  Dynamic: author
45
44
  Dynamic: author-email
46
45
  Dynamic: classifier
@@ -53,7 +52,7 @@ Dynamic: summary
53
52
 
54
53
  Helper package for coding and automation
55
54
 
56
- **Version 0.1.74**
55
+ **Version 0.1.77**
57
56
 
58
57
  + `research/base_exp`: add base experiment class to handle common experiment tasks, including performance calculation and saving results.
59
58
 
@@ -1,6 +1,6 @@
1
1
  Helper package for coding and automation
2
2
 
3
- **Version 0.1.74**
3
+ **Version 0.1.77**
4
4
 
5
5
  + `research/base_exp`: add base experiment class to handle common experiment tasks, including performance calculation and saving results.
6
6
 
@@ -306,9 +306,18 @@ class PerfTB:
306
306
 
307
307
  # Save and open plot
308
308
  if save_path:
309
- fig.write_image(save_path, engine="kaleido")
309
+ export_success = False
310
+ try:
311
+ fig.write_image(save_path, engine="kaleido")
312
+ export_success = True
310
313
  # pprint(f"Saved: {os.path.abspath(save_path)}")
311
- if open_plot and os.name == "nt": # Windows
314
+ except Exception as e:
315
+ print(f"Error saving plot: {e}")
316
+ pprint(
317
+ "Failed to save plot. Check this link: https://stackoverflow.com/questions/69016568/unable-to-export-plotly-images-to-png-with-kaleido. Maybe you need to downgrade kaleido version to 0.1.* or install it via pip install kaleido==0.1.*"
318
+ )
319
+ return
320
+ if export_success and open_plot and os.name == "nt": # Windows
312
321
  os.system(f'start "" "{os.path.abspath(save_path)}"')
313
322
  return fig
314
323
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.75
3
+ Version: 0.1.77
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -12,8 +12,12 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE.txt
13
13
  Requires-Dist: arrow
14
14
  Requires-Dist: click
15
+ Requires-Dist: dataclass-wizard
15
16
  Requires-Dist: enlighten
17
+ Requires-Dist: itables
18
+ Requires-Dist: kaleido
16
19
  Requires-Dist: loguru
20
+ Requires-Dist: matplotlib
17
21
  Requires-Dist: more-itertools
18
22
  Requires-Dist: moviepy
19
23
  Requires-Dist: networkx
@@ -22,25 +26,20 @@ Requires-Dist: omegaconf
22
26
  Requires-Dist: opencv-python
23
27
  Requires-Dist: pandas
24
28
  Requires-Dist: Pillow
29
+ Requires-Dist: plotly
25
30
  Requires-Dist: Pyarrow
26
31
  Requires-Dist: pycurl
32
+ Requires-Dist: pygwalker
27
33
  Requires-Dist: python-telegram-bot
28
34
  Requires-Dist: requests
29
35
  Requires-Dist: rich
30
36
  Requires-Dist: scikit-learn
31
- Requires-Dist: matplotlib
32
37
  Requires-Dist: seaborn
33
- Requires-Dist: plotly
34
- Requires-Dist: pygwalker
35
38
  Requires-Dist: tabulate
36
- Requires-Dist: itables
37
39
  Requires-Dist: timebudget
38
40
  Requires-Dist: tqdm
39
41
  Requires-Dist: tube_dl
40
42
  Requires-Dist: wandb
41
- Requires-Dist: dataclass-wizard
42
- Requires-Dist: kaleido==0.1.*; sys_platform == "win32"
43
- Requires-Dist: kaleido; sys_platform == "linux"
44
43
  Dynamic: author
45
44
  Dynamic: author-email
46
45
  Dynamic: classifier
@@ -53,7 +52,7 @@ Dynamic: summary
53
52
 
54
53
  Helper package for coding and automation
55
54
 
56
- **Version 0.1.74**
55
+ **Version 0.1.77**
57
56
 
58
57
  + `research/base_exp`: add base experiment class to handle common experiment tasks, including performance calculation and saving results.
59
58
 
@@ -1,7 +1,11 @@
1
1
  arrow
2
2
  click
3
+ dataclass-wizard
3
4
  enlighten
5
+ itables
6
+ kaleido
4
7
  loguru
8
+ matplotlib
5
9
  more-itertools
6
10
  moviepy
7
11
  networkx
@@ -10,26 +14,17 @@ omegaconf
10
14
  opencv-python
11
15
  pandas
12
16
  Pillow
17
+ plotly
13
18
  Pyarrow
14
19
  pycurl
20
+ pygwalker
15
21
  python-telegram-bot
16
22
  requests
17
23
  rich
18
24
  scikit-learn
19
- matplotlib
20
25
  seaborn
21
- plotly
22
- pygwalker
23
26
  tabulate
24
- itables
25
27
  timebudget
26
28
  tqdm
27
29
  tube_dl
28
30
  wandb
29
- dataclass-wizard
30
-
31
- [:sys_platform == "linux"]
32
- kaleido
33
-
34
- [:sys_platform == "win32"]
35
- kaleido==0.1.*
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.75",
11
+ version="0.1.77",
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
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