halib 0.1.44__tar.gz → 0.1.46__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.44/halib.egg-info → halib-0.1.46}/PKG-INFO +3 -2
- {halib-0.1.44 → halib-0.1.46}/README.md +2 -1
- {halib-0.1.44 → halib-0.1.46}/halib/__init__.py +2 -0
- {halib-0.1.44 → halib-0.1.46}/halib/filetype/csvfile.py +8 -2
- {halib-0.1.44 → halib-0.1.46/halib.egg-info}/PKG-INFO +3 -2
- {halib-0.1.44 → halib-0.1.46}/setup.py +1 -1
- {halib-0.1.44 → halib-0.1.46}/.gitignore +0 -0
- {halib-0.1.44 → halib-0.1.46}/GDriveFolder.txt +0 -0
- {halib-0.1.44 → halib-0.1.46}/LICENSE.txt +0 -0
- {halib-0.1.44 → halib-0.1.46}/guide_publish_pip.pdf +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/common.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/cuda.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/dataset.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/filetype/__init__.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/filetype/jsonfile.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/filetype/textfile.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/filetype/videofile.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/filetype/yamlfile.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/listop.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/online/__init__.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/online/gdrive.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/online/gdrive_mkdir.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/online/gdrive_test.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/online/projectmake.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/plot.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/rich_color.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/system/__init__.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/system/cmd.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/system/filesys.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/tele_noti.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib/torchloader.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib.egg-info/SOURCES.txt +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib.egg-info/dependency_links.txt +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib.egg-info/requires.txt +0 -0
- {halib-0.1.44 → halib-0.1.46}/halib.egg-info/top_level.txt +0 -0
- {halib-0.1.44 → halib-0.1.46}/setup.cfg +0 -0
- {halib-0.1.44 → halib-0.1.46}/test/test15.py +0 -0
- {halib-0.1.44 → halib-0.1.46}/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.
|
3
|
+
Version: 0.1.46
|
4
4
|
Summary: Small library for common tasks
|
5
5
|
Author: Hoang Van Ha
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
@@ -15,8 +15,9 @@ License-File: LICENSE.txt
|
|
15
15
|
|
16
16
|
Helper package for coding and automation
|
17
17
|
|
18
|
-
**Version 0.1.
|
18
|
+
**Version 0.1.46**
|
19
19
|
+ filter the warning message of `UserWarning: Unable to import Axes3D.`
|
20
|
+
+ auto_wrap_text for `fn_display_df` to avoid long text in the table
|
20
21
|
|
21
22
|
**Version 0.1.42**
|
22
23
|
+ add <rich_color.py>: add basic color list (for easy usage)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
Helper package for coding and automation
|
2
2
|
|
3
|
-
**Version 0.1.
|
3
|
+
**Version 0.1.46**
|
4
4
|
+ filter the warning message of `UserWarning: Unable to import Axes3D.`
|
5
|
+
+ auto_wrap_text for `fn_display_df` to avoid long text in the table
|
5
6
|
|
6
7
|
**Version 0.1.42**
|
7
8
|
+ add <rich_color.py>: add basic color list (for easy usage)
|
@@ -32,6 +32,7 @@ __all__ = [
|
|
32
32
|
"timebudget",
|
33
33
|
"tqdm",
|
34
34
|
"warnings",
|
35
|
+
"time"
|
35
36
|
]
|
36
37
|
import warnings
|
37
38
|
warnings.filterwarnings("ignore", message="Unable to import Axes3D")
|
@@ -43,6 +44,7 @@ import arrow
|
|
43
44
|
import numpy as np
|
44
45
|
import pandas as pd
|
45
46
|
import os
|
47
|
+
import time
|
46
48
|
|
47
49
|
# my own modules
|
48
50
|
from .filetype import *
|
@@ -8,6 +8,7 @@ from tqdm import tqdm
|
|
8
8
|
from loguru import logger
|
9
9
|
from itables import init_notebook_mode, show
|
10
10
|
import pygwalker as pyg
|
11
|
+
import textwrap
|
11
12
|
|
12
13
|
console = Console()
|
13
14
|
|
@@ -42,9 +43,14 @@ def fn_insert_rows(df, singleRow_or_rowList):
|
|
42
43
|
df = pd.concat([df, new_row_df], ignore_index=True)
|
43
44
|
return df
|
44
45
|
|
46
|
+
# Auto-wrap function for each cell
|
47
|
+
def auto_wrap(cell, width=40):
|
48
|
+
return textwrap.fill(str(cell), width=width)
|
45
49
|
|
46
|
-
def fn_display_df(df):
|
47
|
-
|
50
|
+
def fn_display_df(df, max_col_width=40):
|
51
|
+
# Apply wrapping; tablefmt="psql" for PostgreSQL-like output
|
52
|
+
wrapped_df = df.applymap(lambda x: auto_wrap(x, width=max_col_width))
|
53
|
+
print(tabulate(wrapped_df, headers="keys", tablefmt="grid", numalign="right"))
|
48
54
|
|
49
55
|
def showdf(df, display_mode="itable", in_jupyter=True, all_interactive=False):
|
50
56
|
if display_mode == "itable":
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: halib
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.46
|
4
4
|
Summary: Small library for common tasks
|
5
5
|
Author: Hoang Van Ha
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
@@ -15,8 +15,9 @@ License-File: LICENSE.txt
|
|
15
15
|
|
16
16
|
Helper package for coding and automation
|
17
17
|
|
18
|
-
**Version 0.1.
|
18
|
+
**Version 0.1.46**
|
19
19
|
+ filter the warning message of `UserWarning: Unable to import Axes3D.`
|
20
|
+
+ auto_wrap_text for `fn_display_df` to avoid long text in the table
|
20
21
|
|
21
22
|
**Version 0.1.42**
|
22
23
|
+ add <rich_color.py>: add basic color list (for easy usage)
|
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
|