halib 0.1.54__tar.gz → 0.1.55__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.54 → halib-0.1.55}/PKG-INFO +2 -2
- {halib-0.1.54 → halib-0.1.55}/README.md +1 -1
- {halib-0.1.54 → halib-0.1.55}/halib/filetype/csvfile.py +5 -1
- {halib-0.1.54 → halib-0.1.55}/halib/research/perftb.py +3 -3
- {halib-0.1.54 → halib-0.1.55}/halib.egg-info/PKG-INFO +2 -2
- {halib-0.1.54 → halib-0.1.55}/setup.py +1 -1
- {halib-0.1.54 → halib-0.1.55}/.gitignore +0 -0
- {halib-0.1.54 → halib-0.1.55}/GDriveFolder.txt +0 -0
- {halib-0.1.54 → halib-0.1.55}/LICENSE.txt +0 -0
- {halib-0.1.54 → halib-0.1.55}/MANIFEST.in +0 -0
- {halib-0.1.54 → halib-0.1.55}/guide_publish_pip.pdf +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/__init__.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/common.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/cuda.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/filetype/__init__.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/filetype/jsonfile.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/filetype/textfile.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/filetype/videofile.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/filetype/yamlfile.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/online/__init__.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/online/gdrive.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/online/gdrive_mkdir.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/online/gdrive_test.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/online/projectmake.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/research/__init__.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/research/dataset.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/research/plot.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/research/torchloader.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/research/wandb_op.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/rich_color.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/system/__init__.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/system/cmd.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/system/filesys.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/utils/__init__.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/utils/dataclass_util.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/utils/listop.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib/utils/tele_noti.py +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib.egg-info/SOURCES.txt +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib.egg-info/dependency_links.txt +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib.egg-info/requires.txt +0 -0
- {halib-0.1.54 → halib-0.1.55}/halib.egg-info/top_level.txt +0 -0
- {halib-0.1.54 → halib-0.1.55}/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.55
|
4
4
|
Summary: Small library for common tasks
|
5
5
|
Author: Hoang Van Ha
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
@@ -15,7 +15,7 @@ License-File: LICENSE.txt
|
|
15
15
|
|
16
16
|
Helper package for coding and automation
|
17
17
|
|
18
|
-
**Version 0.1.
|
18
|
+
**Version 0.1.55**
|
19
19
|
|
20
20
|
+ add `util/dataclass_util` to help dynamically create `dataclass` classes from dictionary or YAML file, including support for nested dataclasses. From there, we can use `dataclass_wizard` to create a list of `dataclass` classes with the help from ChatGPT.
|
21
21
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Helper package for coding and automation
|
2
2
|
|
3
|
-
**Version 0.1.
|
3
|
+
**Version 0.1.55**
|
4
4
|
|
5
5
|
+ add `util/dataclass_util` to help dynamically create `dataclass` classes from dictionary or YAML file, including support for nested dataclasses. From there, we can use `dataclass_wizard` to create a list of `dataclass` classes with the help from ChatGPT.
|
6
6
|
|
@@ -49,7 +49,11 @@ def auto_wrap(cell, width=40):
|
|
49
49
|
|
50
50
|
def fn_display_df(df, max_col_width=40):
|
51
51
|
# Apply wrapping; tablefmt="psql" for PostgreSQL-like output
|
52
|
-
wrapped_df = df.applymap(lambda x: auto_wrap(x, width=max_col_width))
|
52
|
+
# wrapped_df = df.applymap(lambda x: auto_wrap(x, width=max_col_width))
|
53
|
+
# fix the future warning of applymap
|
54
|
+
wrapped_df = df.apply(
|
55
|
+
lambda col: col.map(lambda x: auto_wrap(x, width=max_col_width))
|
56
|
+
)
|
53
57
|
print(tabulate(wrapped_df, headers="keys", tablefmt="grid", numalign="right"))
|
54
58
|
|
55
59
|
def showdf(df, display_mode="itable", in_jupyter=True, all_interactive=False):
|
@@ -12,10 +12,10 @@ from typing import Dict, List, Union, Optional
|
|
12
12
|
from rich.pretty import pprint
|
13
13
|
import pandas as pd
|
14
14
|
|
15
|
-
from halib import *
|
15
|
+
# from halib import *
|
16
16
|
# internal imports
|
17
|
-
|
18
|
-
|
17
|
+
from ..filetype import csvfile
|
18
|
+
from ..common import ConsoleLog
|
19
19
|
|
20
20
|
|
21
21
|
class DatasetMetrics:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: halib
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.55
|
4
4
|
Summary: Small library for common tasks
|
5
5
|
Author: Hoang Van Ha
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
@@ -15,7 +15,7 @@ License-File: LICENSE.txt
|
|
15
15
|
|
16
16
|
Helper package for coding and automation
|
17
17
|
|
18
|
-
**Version 0.1.
|
18
|
+
**Version 0.1.55**
|
19
19
|
|
20
20
|
+ add `util/dataclass_util` to help dynamically create `dataclass` classes from dictionary or YAML file, including support for nested dataclasses. From there, we can use `dataclass_wizard` to create a list of `dataclass` classes with the help from ChatGPT.
|
21
21
|
|
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
|
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
|