halib 0.1.39__tar.gz → 0.1.40__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 (37) hide show
  1. {halib-0.1.39/halib.egg-info → halib-0.1.40}/PKG-INFO +4 -1
  2. {halib-0.1.39 → halib-0.1.40}/README.md +3 -0
  3. {halib-0.1.39 → halib-0.1.40}/halib/filetype/csvfile.py +26 -0
  4. {halib-0.1.39 → halib-0.1.40/halib.egg-info}/PKG-INFO +4 -1
  5. {halib-0.1.39 → halib-0.1.40}/halib.egg-info/requires.txt +4 -2
  6. {halib-0.1.39 → halib-0.1.40}/setup.py +1 -1
  7. {halib-0.1.39 → halib-0.1.40}/.gitignore +0 -0
  8. {halib-0.1.39 → halib-0.1.40}/GDriveFolder.txt +0 -0
  9. {halib-0.1.39 → halib-0.1.40}/LICENSE.txt +0 -0
  10. {halib-0.1.39 → halib-0.1.40}/guide_publish_pip.pdf +0 -0
  11. {halib-0.1.39 → halib-0.1.40}/halib/__init__.py +0 -0
  12. {halib-0.1.39 → halib-0.1.40}/halib/common.py +0 -0
  13. {halib-0.1.39 → halib-0.1.40}/halib/cuda.py +0 -0
  14. {halib-0.1.39 → halib-0.1.40}/halib/dataset.py +0 -0
  15. {halib-0.1.39 → halib-0.1.40}/halib/filetype/__init__.py +0 -0
  16. {halib-0.1.39 → halib-0.1.40}/halib/filetype/jsonfile.py +0 -0
  17. {halib-0.1.39 → halib-0.1.40}/halib/filetype/textfile.py +0 -0
  18. {halib-0.1.39 → halib-0.1.40}/halib/filetype/videofile.py +0 -0
  19. {halib-0.1.39 → halib-0.1.40}/halib/filetype/yamlfile.py +0 -0
  20. {halib-0.1.39 → halib-0.1.40}/halib/listop.py +0 -0
  21. {halib-0.1.39 → halib-0.1.40}/halib/online/__init__.py +0 -0
  22. {halib-0.1.39 → halib-0.1.40}/halib/online/gdrive.py +0 -0
  23. {halib-0.1.39 → halib-0.1.40}/halib/online/gdrive_mkdir.py +0 -0
  24. {halib-0.1.39 → halib-0.1.40}/halib/online/gdrive_test.py +0 -0
  25. {halib-0.1.39 → halib-0.1.40}/halib/online/projectmake.py +0 -0
  26. {halib-0.1.39 → halib-0.1.40}/halib/plot.py +0 -0
  27. {halib-0.1.39 → halib-0.1.40}/halib/system/__init__.py +0 -0
  28. {halib-0.1.39 → halib-0.1.40}/halib/system/cmd.py +0 -0
  29. {halib-0.1.39 → halib-0.1.40}/halib/system/filesys.py +0 -0
  30. {halib-0.1.39 → halib-0.1.40}/halib/tele_noti.py +0 -0
  31. {halib-0.1.39 → halib-0.1.40}/halib/torchloader.py +0 -0
  32. {halib-0.1.39 → halib-0.1.40}/halib.egg-info/SOURCES.txt +0 -0
  33. {halib-0.1.39 → halib-0.1.40}/halib.egg-info/dependency_links.txt +0 -0
  34. {halib-0.1.39 → halib-0.1.40}/halib.egg-info/top_level.txt +0 -0
  35. {halib-0.1.39 → halib-0.1.40}/setup.cfg +0 -0
  36. {halib-0.1.39 → halib-0.1.40}/test/test15.py +0 -0
  37. {halib-0.1.39 → halib-0.1.40}/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.39
3
+ Version: 0.1.40
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -14,6 +14,9 @@ Description-Content-Type: text/markdown
14
14
  License-File: LICENSE.txt
15
15
 
16
16
  Helper package for coding and automation
17
+ **Version 0.1.40**
18
+
19
+ + update <csvfile.py> to use `itables` and `pygwalker` to display dataframe in jupyter notebook.
17
20
 
18
21
  **Version 0.1.38**
19
22
 
@@ -1,4 +1,7 @@
1
1
  Helper package for coding and automation
2
+ **Version 0.1.40**
3
+
4
+ + update <csvfile.py> to use `itables` and `pygwalker` to display dataframe in jupyter notebook.
2
5
 
3
6
  **Version 0.1.38**
4
7
 
@@ -6,6 +6,8 @@ from rich import inspect
6
6
  from rich.pretty import pprint
7
7
  from tqdm import tqdm
8
8
  from loguru import logger
9
+ from itables import init_notebook_mode, show
10
+ import pygwalker as pyg
9
11
 
10
12
  console = Console()
11
13
 
@@ -44,6 +46,30 @@ def fn_insert_rows(df, singleRow_or_rowList):
44
46
  def fn_display_df(df):
45
47
  print(tabulate(df, headers="keys", tablefmt="psql", numalign="right"))
46
48
 
49
+ def showdf(df, display_mode="itable", in_jupyter=True, all_interactive=False):
50
+ if display_mode == "itable":
51
+ if in_jupyter:
52
+ init_notebook_mode(all_interactive=all_interactive)
53
+ show(
54
+ df,
55
+ # layout={"top1": "searchPanes"},
56
+ # searchPanes={"layout": "column-3", "cascadePanes": True},
57
+ caption="table caption",
58
+ layout={"top1": "searchBuilder"},
59
+ buttons=["csvHtml5", "excelHtml5", "colvis"],
60
+ search={"regex": True, "caseInsensitive": True},
61
+ paging=False, # no paging
62
+ scrollY="300px", # height of table
63
+ scrollCollapse=True,
64
+ showIndex=True, # show row no.
65
+ select=True, # allow row selected
66
+ keys=True, # enable navigate using arrow keys
67
+ )
68
+ elif display_mode == "pygwalker":
69
+ return pyg.walk(df)
70
+ else:
71
+ raise ValueError("Invalid display mode, current support [itable, pygwalker]")
72
+
47
73
 
48
74
  def fn_config_display_pd(
49
75
  max_rows=None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: halib
3
- Version: 0.1.39
3
+ Version: 0.1.40
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -14,6 +14,9 @@ Description-Content-Type: text/markdown
14
14
  License-File: LICENSE.txt
15
15
 
16
16
  Helper package for coding and automation
17
+ **Version 0.1.40**
18
+
19
+ + update <csvfile.py> to use `itables` and `pygwalker` to display dataframe in jupyter notebook.
17
20
 
18
21
  **Version 0.1.38**
19
22
 
@@ -3,7 +3,6 @@ click
3
3
  enlighten
4
4
  kaleido==0.1.*
5
5
  loguru
6
- matplotlib
7
6
  more-itertools
8
7
  moviepy
9
8
  networkx
@@ -12,15 +11,18 @@ omegaconf
12
11
  opencv-python
13
12
  pandas
14
13
  Pillow
15
- plotly
16
14
  Pyarrow
17
15
  pycurl
18
16
  python-telegram-bot
19
17
  requests
20
18
  rich
21
19
  scikit-learn
20
+ matplotlib
22
21
  seaborn
22
+ plotly
23
+ pygwalker
23
24
  tabulate
25
+ itables
24
26
  timebudget
25
27
  tqdm
26
28
  tube_dl
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.39",
11
+ version="0.1.40",
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