halib 0.1.97__py3-none-any.whl → 0.1.98__py3-none-any.whl

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/filetype/ipynb.py CHANGED
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.97
3
+ Version: 0.1.98
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.98**
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**
@@ -18,7 +18,7 @@ halib/torchloader.py,sha256=-q9YE-AoHZE1xQX2dgNxdqtucEXYs4sQ22WXdl6EGfI,6500
18
18
  halib/videofile.py,sha256=NTLTZ-j6YD47duw2LN2p-lDQDglYFP1LpEU_0gzHLdI,4737
19
19
  halib/filetype/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  halib/filetype/csvfile.py,sha256=4Klf8YNzY1MaCD3o5Wp5GG3KMfQIBOEVzHV_7DO5XBo,6604
21
- halib/filetype/ipynb.py,sha256=iWZAT-03Uw_Ak2CYznB4oToTeELkoIuB8N_ooAXqvX4,1629
21
+ halib/filetype/ipynb.py,sha256=hd1IxQmSdNyCT1WwteSmy6e_xFVpdEPC1jM0drr6ag4,1663
22
22
  halib/filetype/jsonfile.py,sha256=9LBdM7LV9QgJA1bzJRkq69qpWOP22HDXPGirqXTgSCw,480
23
23
  halib/filetype/textfile.py,sha256=QtuI5PdLxu4hAqSeafr3S8vCXwtvgipWV4Nkl7AzDYM,399
24
24
  halib/filetype/videofile.py,sha256=4nfVAYYtoT76y8P4WYyxNna4Iv1o2iV6xaMcUzNPC4s,4736
@@ -57,8 +57,8 @@ halib/utils/gpu_mon.py,sha256=vD41_ZnmPLKguuq9X44SB_vwd9JrblO4BDzHLXZhhFY,2233
57
57
  halib/utils/listop.py,sha256=Vpa8_2fI0wySpB2-8sfTBkyi_A4FhoFVVvFiuvW8N64,339
58
58
  halib/utils/tele_noti.py,sha256=-4WXZelCA4W9BroapkRyIdUu9cUVrcJJhegnMs_WpGU,5928
59
59
  halib/utils/video.py,sha256=zLoj5EHk4SmP9OnoHjO8mLbzPdtq6gQPzTQisOEDdO8,3261
60
- halib-0.1.97.dist-info/licenses/LICENSE.txt,sha256=qZssdna4aETiR8znYsShUjidu-U4jUT9Q-EWNlZ9yBQ,1100
61
- halib-0.1.97.dist-info/METADATA,sha256=ROyN-2YSKEH2rxhwNe7Do-uQHqg7Sv-yx-Uc95ddzcc,6387
62
- halib-0.1.97.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
- halib-0.1.97.dist-info/top_level.txt,sha256=7AD6PLaQTreE0Fn44mdZsoHBe_Zdd7GUmjsWPyQ7I-k,6
64
- halib-0.1.97.dist-info/RECORD,,
60
+ halib-0.1.98.dist-info/licenses/LICENSE.txt,sha256=qZssdna4aETiR8znYsShUjidu-U4jUT9Q-EWNlZ9yBQ,1100
61
+ halib-0.1.98.dist-info/METADATA,sha256=-sji_qNG3eCqzyiYEuyV4gW1aBEeaguD8w8j5IAUfu8,6387
62
+ halib-0.1.98.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
+ halib-0.1.98.dist-info/top_level.txt,sha256=7AD6PLaQTreE0Fn44mdZsoHBe_Zdd7GUmjsWPyQ7I-k,6
64
+ halib-0.1.98.dist-info/RECORD,,
File without changes