halib 0.1.41__tar.gz → 0.1.43__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 (38) hide show
  1. {halib-0.1.41/halib.egg-info → halib-0.1.43}/PKG-INFO +9 -2
  2. {halib-0.1.41 → halib-0.1.43}/README.md +7 -0
  3. {halib-0.1.41 → halib-0.1.43}/halib/__init__.py +16 -6
  4. {halib-0.1.41 → halib-0.1.43}/halib/rich_color.py +26 -0
  5. {halib-0.1.41 → halib-0.1.43/halib.egg-info}/PKG-INFO +9 -2
  6. {halib-0.1.41 → halib-0.1.43}/setup.py +2 -2
  7. {halib-0.1.41 → halib-0.1.43}/.gitignore +0 -0
  8. {halib-0.1.41 → halib-0.1.43}/GDriveFolder.txt +0 -0
  9. {halib-0.1.41 → halib-0.1.43}/LICENSE.txt +0 -0
  10. {halib-0.1.41 → halib-0.1.43}/guide_publish_pip.pdf +0 -0
  11. {halib-0.1.41 → halib-0.1.43}/halib/common.py +0 -0
  12. {halib-0.1.41 → halib-0.1.43}/halib/cuda.py +0 -0
  13. {halib-0.1.41 → halib-0.1.43}/halib/dataset.py +0 -0
  14. {halib-0.1.41 → halib-0.1.43}/halib/filetype/__init__.py +0 -0
  15. {halib-0.1.41 → halib-0.1.43}/halib/filetype/csvfile.py +0 -0
  16. {halib-0.1.41 → halib-0.1.43}/halib/filetype/jsonfile.py +0 -0
  17. {halib-0.1.41 → halib-0.1.43}/halib/filetype/textfile.py +0 -0
  18. {halib-0.1.41 → halib-0.1.43}/halib/filetype/videofile.py +0 -0
  19. {halib-0.1.41 → halib-0.1.43}/halib/filetype/yamlfile.py +0 -0
  20. {halib-0.1.41 → halib-0.1.43}/halib/listop.py +0 -0
  21. {halib-0.1.41 → halib-0.1.43}/halib/online/__init__.py +0 -0
  22. {halib-0.1.41 → halib-0.1.43}/halib/online/gdrive.py +0 -0
  23. {halib-0.1.41 → halib-0.1.43}/halib/online/gdrive_mkdir.py +0 -0
  24. {halib-0.1.41 → halib-0.1.43}/halib/online/gdrive_test.py +0 -0
  25. {halib-0.1.41 → halib-0.1.43}/halib/online/projectmake.py +0 -0
  26. {halib-0.1.41 → halib-0.1.43}/halib/plot.py +0 -0
  27. {halib-0.1.41 → halib-0.1.43}/halib/system/__init__.py +0 -0
  28. {halib-0.1.41 → halib-0.1.43}/halib/system/cmd.py +0 -0
  29. {halib-0.1.41 → halib-0.1.43}/halib/system/filesys.py +0 -0
  30. {halib-0.1.41 → halib-0.1.43}/halib/tele_noti.py +0 -0
  31. {halib-0.1.41 → halib-0.1.43}/halib/torchloader.py +0 -0
  32. {halib-0.1.41 → halib-0.1.43}/halib.egg-info/SOURCES.txt +0 -0
  33. {halib-0.1.41 → halib-0.1.43}/halib.egg-info/dependency_links.txt +0 -0
  34. {halib-0.1.41 → halib-0.1.43}/halib.egg-info/requires.txt +0 -0
  35. {halib-0.1.41 → halib-0.1.43}/halib.egg-info/top_level.txt +0 -0
  36. {halib-0.1.41 → halib-0.1.43}/setup.cfg +0 -0
  37. {halib-0.1.41 → halib-0.1.43}/test/test15.py +0 -0
  38. {halib-0.1.41 → halib-0.1.43}/test/test_df_creator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: halib
3
- Version: 0.1.41
3
+ Version: 0.1.43
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -9,11 +9,18 @@ Platform: UNKNOWN
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.6
12
+ Requires-Python: >=3.8
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE.txt
15
15
 
16
16
  Helper package for coding and automation
17
+
18
+ **Version 0.1.43**
19
+ + filter the warning message of `UserWarning: Unable to import Axes3D.`
20
+
21
+ **Version 0.1.42**
22
+ + add <rich_color.py>: add basic color list (for easy usage)
23
+
17
24
  **Version 0.1.41**
18
25
  + add <rich_color.py> to display rich color information in <rich> python package (rcolor_str, rcolor_pallet_all, etc.)
19
26
 
@@ -1,4 +1,11 @@
1
1
  Helper package for coding and automation
2
+
3
+ **Version 0.1.43**
4
+ + filter the warning message of `UserWarning: Unable to import Axes3D.`
5
+
6
+ **Version 0.1.42**
7
+ + add <rich_color.py>: add basic color list (for easy usage)
8
+
2
9
  **Version 0.1.41**
3
10
  + add <rich_color.py> to display rich color information in <rich> python package (rcolor_str, rcolor_pallet_all, etc.)
4
11
 
@@ -28,13 +28,23 @@ __all__ = [
28
28
  "rcolor_str",
29
29
  "rcolor_palette_all"
30
30
  ]
31
+ import warnings
32
+ warnings.filterwarnings("ignore", message="Unable to import Axes3D")
31
33
 
34
+ # common libraries
35
+ import re
36
+ from tqdm import tqdm
37
+ import arrow
32
38
  import numpy as np
33
39
  import pandas as pd
40
+ import os
41
+
42
+ # my own modules
34
43
  from .filetype import *
35
44
  from .filetype.yamlfile import load_yaml
36
45
  from .system import cmd
37
46
  from .system import filesys as fs
47
+ from .filetype import csvfile
38
48
  from .cuda import tcuda
39
49
  from .common import console, console_log, ConsoleLog, now_str, norm_str
40
50
 
@@ -42,14 +52,14 @@ from .common import console, console_log, ConsoleLog, now_str, norm_str
42
52
  from loguru import logger
43
53
  from rich import inspect
44
54
  from rich import print as rprint
45
-
46
55
  from rich.pretty import pprint
47
56
  from timebudget import timebudget
48
- from tqdm import tqdm
49
- import matplotlib.pyplot as plt
50
- import re
51
- import arrow
52
57
  import omegaconf
53
58
  from omegaconf import OmegaConf
54
59
  from omegaconf.dictconfig import DictConfig
55
- from .rich_color import rcolor_str, rcolor_palette, rcolor_palette_all, rcolor_all_str
60
+ from .rich_color import rcolor_str, rcolor_palette, rcolor_palette_all, rcolor_all_str
61
+
62
+ # for visualization
63
+ import seaborn as sns
64
+ import matplotlib.pyplot as plt
65
+ import plotly.express as px
@@ -212,9 +212,31 @@ all_colors = [
212
212
  "grey93",
213
213
  ]
214
214
 
215
+ basic_colors = [
216
+ "black",
217
+ "red",
218
+ "green",
219
+ "yellow",
220
+ "blue",
221
+ "magenta",
222
+ "cyan",
223
+ "white",
224
+ "bright_black",
225
+ "bright_red",
226
+ "bright_green",
227
+ "bright_yellow",
228
+ "bright_blue",
229
+ "bright_magenta",
230
+ "bright_cyan",
231
+ "bright_white",
232
+ ]
233
+
215
234
  def rcolor_all_str():
216
235
  pprint(all_colors)
217
236
 
237
+ def rcolor_basic_str():
238
+ pprint(basic_colors)
239
+
218
240
  def rcolor_str(in_str, color="white"):
219
241
  assert color in all_colors, f"color must be one of {all_colors}"
220
242
  return f"[{color}]{in_str}[/{color}]"
@@ -255,5 +277,9 @@ def rcolor_palette(color_list):
255
277
 
256
278
  # Print the table
257
279
  console.print(table)
280
+
281
+ def rcolor_palette_basic():
282
+ rcolor_palette(basic_colors)
283
+
258
284
  def rcolor_palette_all():
259
285
  rcolor_palette(all_colors)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: halib
3
- Version: 0.1.41
3
+ Version: 0.1.43
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -9,11 +9,18 @@ Platform: UNKNOWN
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.6
12
+ Requires-Python: >=3.8
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE.txt
15
15
 
16
16
  Helper package for coding and automation
17
+
18
+ **Version 0.1.43**
19
+ + filter the warning message of `UserWarning: Unable to import Axes3D.`
20
+
21
+ **Version 0.1.42**
22
+ + add <rich_color.py>: add basic color list (for easy usage)
23
+
17
24
  **Version 0.1.41**
18
25
  + add <rich_color.py> to display rich color information in <rich> python package (rcolor_str, rcolor_pallet_all, etc.)
19
26
 
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.41",
11
+ version="0.1.43",
12
12
  author="Hoang Van Ha",
13
13
  author_email="hoangvanhauit@gmail.com",
14
14
  description="Small library for common tasks",
@@ -20,6 +20,6 @@ setuptools.setup(
20
20
  "License :: OSI Approved :: MIT License",
21
21
  "Operating System :: OS Independent",
22
22
  ],
23
- python_requires=">=3.6",
23
+ python_requires=">=3.8",
24
24
  install_requires=required,
25
25
  )
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