halib 0.1.97__tar.gz → 0.1.99__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 (55) hide show
  1. {halib-0.1.97 → halib-0.1.99}/PKG-INFO +4 -4
  2. {halib-0.1.97 → halib-0.1.99}/README.md +3 -3
  3. {halib-0.1.97 → halib-0.1.99}/halib/filetype/ipynb.py +2 -1
  4. {halib-0.1.97 → halib-0.1.99}/halib/research/dataset.py +6 -7
  5. {halib-0.1.97 → halib-0.1.99}/halib.egg-info/PKG-INFO +4 -4
  6. {halib-0.1.97 → halib-0.1.99}/setup.py +1 -1
  7. {halib-0.1.97 → halib-0.1.99}/.gitignore +0 -0
  8. {halib-0.1.97 → halib-0.1.99}/GDriveFolder.txt +0 -0
  9. {halib-0.1.97 → halib-0.1.99}/LICENSE.txt +0 -0
  10. {halib-0.1.97 → halib-0.1.99}/MANIFEST.in +0 -0
  11. {halib-0.1.97 → halib-0.1.99}/guide_publish_pip.pdf +0 -0
  12. {halib-0.1.97 → halib-0.1.99}/halib/__init__.py +0 -0
  13. {halib-0.1.97 → halib-0.1.99}/halib/common.py +0 -0
  14. {halib-0.1.97 → halib-0.1.99}/halib/cuda.py +0 -0
  15. {halib-0.1.97 → halib-0.1.99}/halib/filetype/__init__.py +0 -0
  16. {halib-0.1.97 → halib-0.1.99}/halib/filetype/csvfile.py +0 -0
  17. {halib-0.1.97 → halib-0.1.99}/halib/filetype/jsonfile.py +0 -0
  18. {halib-0.1.97 → halib-0.1.99}/halib/filetype/textfile.py +0 -0
  19. {halib-0.1.97 → halib-0.1.99}/halib/filetype/videofile.py +0 -0
  20. {halib-0.1.97 → halib-0.1.99}/halib/filetype/yamlfile.py +0 -0
  21. {halib-0.1.97 → halib-0.1.99}/halib/online/__init__.py +0 -0
  22. {halib-0.1.97 → halib-0.1.99}/halib/online/gdrive.py +0 -0
  23. {halib-0.1.97 → halib-0.1.99}/halib/online/gdrive_mkdir.py +0 -0
  24. {halib-0.1.97 → halib-0.1.99}/halib/online/gdrive_test.py +0 -0
  25. {halib-0.1.97 → halib-0.1.99}/halib/online/projectmake.py +0 -0
  26. {halib-0.1.97 → halib-0.1.99}/halib/research/__init__.py +0 -0
  27. {halib-0.1.97 → halib-0.1.99}/halib/research/base_config.py +0 -0
  28. {halib-0.1.97 → halib-0.1.99}/halib/research/base_exp.py +0 -0
  29. {halib-0.1.97 → halib-0.1.99}/halib/research/flop_csv.py +0 -0
  30. {halib-0.1.97 → halib-0.1.99}/halib/research/flops.py +0 -0
  31. {halib-0.1.97 → halib-0.1.99}/halib/research/metrics.py +0 -0
  32. {halib-0.1.97 → halib-0.1.99}/halib/research/mics.py +0 -0
  33. {halib-0.1.97 → halib-0.1.99}/halib/research/params_gen.py +0 -0
  34. {halib-0.1.97 → halib-0.1.99}/halib/research/perfcalc.py +0 -0
  35. {halib-0.1.97 → halib-0.1.99}/halib/research/perftb.py +0 -0
  36. {halib-0.1.97 → halib-0.1.99}/halib/research/plot.py +0 -0
  37. {halib-0.1.97 → halib-0.1.99}/halib/research/profiler.py +0 -0
  38. {halib-0.1.97 → halib-0.1.99}/halib/research/torchloader.py +0 -0
  39. {halib-0.1.97 → halib-0.1.99}/halib/research/wandb_op.py +0 -0
  40. {halib-0.1.97 → halib-0.1.99}/halib/rich_color.py +0 -0
  41. {halib-0.1.97 → halib-0.1.99}/halib/system/__init__.py +0 -0
  42. {halib-0.1.97 → halib-0.1.99}/halib/system/cmd.py +0 -0
  43. {halib-0.1.97 → halib-0.1.99}/halib/system/filesys.py +0 -0
  44. {halib-0.1.97 → halib-0.1.99}/halib/utils/__init__.py +0 -0
  45. {halib-0.1.97 → halib-0.1.99}/halib/utils/dataclass_util.py +0 -0
  46. {halib-0.1.97 → halib-0.1.99}/halib/utils/dict_op.py +0 -0
  47. {halib-0.1.97 → halib-0.1.99}/halib/utils/gpu_mon.py +0 -0
  48. {halib-0.1.97 → halib-0.1.99}/halib/utils/listop.py +0 -0
  49. {halib-0.1.97 → halib-0.1.99}/halib/utils/tele_noti.py +0 -0
  50. {halib-0.1.97 → halib-0.1.99}/halib/utils/video.py +0 -0
  51. {halib-0.1.97 → halib-0.1.99}/halib.egg-info/SOURCES.txt +0 -0
  52. {halib-0.1.97 → halib-0.1.99}/halib.egg-info/dependency_links.txt +0 -0
  53. {halib-0.1.97 → halib-0.1.99}/halib.egg-info/requires.txt +0 -0
  54. {halib-0.1.97 → halib-0.1.99}/halib.egg-info/top_level.txt +0 -0
  55. {halib-0.1.97 → halib-0.1.99}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.97
3
+ Version: 0.1.99
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -53,11 +53,11 @@ Dynamic: summary
53
53
 
54
54
  # Helper package for coding and automation
55
55
 
56
- **Version 0.1.97**
57
- + `filetype/ipynb': add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
56
+ **Version 0.1.99**
57
+ + `filetype/ipynb`: add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
58
58
 
59
59
  **Version 0.1.96**
60
- + `research/plot': add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
60
+ + `research/plot`: add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
61
61
 
62
62
 
63
63
  **Version 0.1.91**
@@ -1,10 +1,10 @@
1
1
  # Helper package for coding and automation
2
2
 
3
- **Version 0.1.97**
4
- + `filetype/ipynb': add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
3
+ **Version 0.1.99**
4
+ + `filetype/ipynb`: add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
5
5
 
6
6
  **Version 0.1.96**
7
- + `research/plot': add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
7
+ + `research/plot`: add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
8
8
 
9
9
 
10
10
  **Version 0.1.91**
@@ -10,6 +10,7 @@ from ..common import console, now_str
10
10
  def gen_ipynb_name(
11
11
  filename,
12
12
  add_time_stamp=False,
13
+ nb_prefix="nb__",
13
14
  separator="__",
14
15
  ):
15
16
  """
@@ -32,7 +33,7 @@ def gen_ipynb_name(
32
33
  now_string = now_str() if add_time_stamp else ""
33
34
 
34
35
  # 2. Construct the base name (Notebook + Separator + OriginalName)
35
- base_name = f"{nb_name}{separator}{original_stem}"
36
+ base_name = f"{nb_prefix}{nb_name}{separator}{original_stem}"
36
37
 
37
38
  # 3. Append timestamp if needed
38
39
  if now_string:
@@ -4,18 +4,17 @@
4
4
 
5
5
  from argparse import ArgumentParser
6
6
 
7
- from rich import inspect
8
- from common import console, seed_everything, ConsoleLog
9
- from sklearn.model_selection import StratifiedShuffleSplit, ShuffleSplit
10
- from tqdm import tqdm
11
7
  import os
12
8
  import click
13
- from torchvision.datasets import ImageFolder
14
9
  import shutil
10
+ from tqdm import tqdm
11
+ from rich import inspect
15
12
  from rich.pretty import pprint
16
- from system import filesys as fs
17
- import glob
13
+ from torchvision.datasets import ImageFolder
14
+ from sklearn.model_selection import StratifiedShuffleSplit, ShuffleSplit
18
15
 
16
+ from ..system import filesys as fs
17
+ from ..common import console, seed_everything, ConsoleLog
19
18
 
20
19
  def parse_args():
21
20
  parser = ArgumentParser(description="desc text")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.97
3
+ Version: 0.1.99
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -53,11 +53,11 @@ Dynamic: summary
53
53
 
54
54
  # Helper package for coding and automation
55
55
 
56
- **Version 0.1.97**
57
- + `filetype/ipynb': add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
56
+ **Version 0.1.99**
57
+ + `filetype/ipynb`: add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
58
58
 
59
59
  **Version 0.1.96**
60
- + `research/plot': add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
60
+ + `research/plot`: add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
61
61
 
62
62
 
63
63
  **Version 0.1.91**
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.97",
11
+ version="0.1.99",
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
File without changes
File without changes