stouputils 1.19.0__py3-none-any.whl → 1.19.2__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.
@@ -353,9 +353,9 @@ def generate_index_md(
353
353
  version_links: list[str] = []
354
354
  for version in version_list:
355
355
  if version == "latest":
356
- version_links.append("[latest](../latest/)")
356
+ version_links.append('<a href="../latest/">latest</a>')
357
357
  else:
358
- version_links.append(f"[v{version}](../v{version}/)")
358
+ version_links.append(f'<a href="../v{version}/">v{version}</a>')
359
359
  version_selector: str = "\n\n**Versions**: " + ", ".join(version_links)
360
360
 
361
361
  # Module documentation toctree (MyST)
@@ -529,6 +529,13 @@ h6 { font-size: 0.9em !important; }
529
529
  100% { background-position: 200% center; }
530
530
  }
531
531
 
532
+ /* Adjustments to abmonition */
533
+ .admonition {
534
+ text-decoration: none;
535
+ padding: 1rem;
536
+ display: block;
537
+ }
538
+
532
539
  /* On hover animation for various elements */
533
540
  a, h1, h2, h3, h4, h5, h6, .admonition {
534
541
  transition: transform 0.3s;
stouputils/decorators.py CHANGED
@@ -619,15 +619,12 @@ def _get_wrapper_name(decorator_name: str, func: Callable[..., Any]) -> str:
619
619
 
620
620
 
621
621
  def _set_wrapper_name(wrapper: Callable[..., Any], name: str) -> None:
622
- """ Set the wrapper function's visible name, qualname and code object name for clearer tracebacks.
622
+ """ Set the wrapper function's visible name (code object name) for clearer tracebacks.
623
623
 
624
624
  Args:
625
625
  wrapper (Callable[..., Any]): Wrapper function to update
626
626
  name (str): New name to set
627
627
  """
628
- # __name__ affects repr and some introspection
629
- wrapper.__name__ = name
630
-
631
628
  # Update the code object's co_name so tracebacks show the new name
632
629
  try:
633
630
  wrapper.__code__ = wrapper.__code__.replace(co_name=name)
stouputils/decorators.pyi CHANGED
@@ -251,7 +251,7 @@ def _get_wrapper_name(decorator_name: str, func: Callable[..., Any]) -> str:
251
251
  \t\tstr: Combined name for the wrapper function (e.g., "stouputils.decorators.handle_error@function_name")
252
252
  \t'''
253
253
  def _set_wrapper_name(wrapper: Callable[..., Any], name: str) -> None:
254
- """ Set the wrapper function's visible name, qualname and code object name for clearer tracebacks.
254
+ """ Set the wrapper function's visible name (code object name) for clearer tracebacks.
255
255
 
256
256
  \tArgs:
257
257
  \t\twrapper\t(Callable[..., Any]):\tWrapper function to update
stouputils/typing.py CHANGED
@@ -3,7 +3,7 @@ This module provides utilities for typing enhancements such as JSON type aliases
3
3
  - JsonDict
4
4
  - JsonList
5
5
  - JsonMap
6
- - MutJsonMap
6
+ - JsonMutMap
7
7
  - IterAny
8
8
  """
9
9
 
@@ -19,7 +19,7 @@ JsonList = list[Any]
19
19
  """ A type alias for JSON lists """
20
20
  JsonMap = Mapping[str, Any]
21
21
  """ A type alias for JSON mapping """
22
- MutJsonMap = MutableMapping[str, Any]
22
+ JsonMutMap = MutableMapping[str, Any]
23
23
  """ A type alias for mutable JSON mapping """
24
24
  IterAny = Iterable[Any]
25
25
  """ A type alias for iterable of any type """
stouputils/typing.pyi CHANGED
@@ -4,7 +4,7 @@ from typing import Any
4
4
  JsonDict = dict[str, Any]
5
5
  JsonList = list[Any]
6
6
  JsonMap = Mapping[str, Any]
7
- MutJsonMap = MutableMapping[str, Any]
7
+ JsonMutMap = MutableMapping[str, Any]
8
8
  IterAny = Iterable[Any]
9
9
 
10
10
  def convert_to_serializable(obj: Any) -> Any:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: stouputils
3
- Version: 1.19.0
3
+ Version: 1.19.2
4
4
  Summary: Stouputils is a collection of utility modules designed to simplify and enhance the development process. It includes a range of tools for tasks such as execution of doctests, display utilities, decorators, as well as context managers, and many more.
5
5
  Keywords: utilities,tools,helpers,development,python
6
6
  Author: Stoupy51
@@ -53,10 +53,8 @@ Stouputils is a collection of utility modules designed to simplify and enhance t
53
53
  It includes a range of tools for tasks such as execution of doctests, display utilities, decorators, as well as context managers.<br>
54
54
  Start now by installing the package: `pip install stouputils`.<br>
55
55
 
56
- <a href="https://colab.research.google.com/drive/1mJ-KL-zXzIk1oKDxO6FC1SFfm-BVKG-P?usp=sharing" target="_blank" rel="noopener noreferrer" style="text-decoration: none;">
57
- <div class="admonition" style="padding-bottom: 1rem;">
56
+ <a class="admonition" href="https://colab.research.google.com/drive/1mJ-KL-zXzIk1oKDxO6FC1SFfm-BVKG-P?usp=sharing" target="_blank" rel="noopener noreferrer">
58
57
  📖 <b>Want to see examples?</b> Check out our <u>Google Colab notebook</u> with practical usage examples!
59
- </div>
60
58
  </a>
61
59
 
62
60
  ## 🚀 Project File Tree
@@ -7,7 +7,7 @@ stouputils/all_doctests.py,sha256=jQ7HXWoj2VTUbsu8eBq7EiW9mbx-_yXycdpS1fD8Tro,65
7
7
  stouputils/all_doctests.pyi,sha256=R3FRKaQv3sTZbxLvvsChHZZKygVMhmL6pqrYYLqvZCg,2017
8
8
  stouputils/applications/__init__.py,sha256=dbjwZt8PZF043KoJSItqCpH32FtRxN5sgV-8Q2b1l10,457
9
9
  stouputils/applications/__init__.pyi,sha256=DTYq2Uqq1uLzCMkFByjRqdtREA-9SaQnp4QpgmCEPFg,56
10
- stouputils/applications/automatic_docs.py,sha256=piYkrF4_Sg3h9Le3vB7Ni7GmU7zhIDcvhyrm-OGCax8,20123
10
+ stouputils/applications/automatic_docs.py,sha256=B8f2VGA5-wuSJgJhqWNtsbcNaH8GiIR6inyrWhDyD-U,20258
11
11
  stouputils/applications/automatic_docs.pyi,sha256=sBzcz1V98hyGLKRe8h9S6X_uXMQL798yjCTmERNQt14,6121
12
12
  stouputils/applications/upscaler/__init__.py,sha256=8vrca93OYu5GQJrZO1GvnAbptzyhu_L0DnP3M9unlA0,1142
13
13
  stouputils/applications/upscaler/__init__.pyi,sha256=VSp6Tq09ATCTdfnjhbDnu7lblaLLGbCNi-E22jYxa88,67
@@ -109,8 +109,8 @@ stouputils/data_science/scripts/exhaustive_process.py,sha256=Dc5gceIlIiP8U0m1qt3
109
109
  stouputils/data_science/scripts/preprocess_dataset.py,sha256=OLC2KjEtSMeyHHPpNOATfNDuq0lZ09utKhsuzBA4MN4,2929
110
110
  stouputils/data_science/scripts/routine.py,sha256=FkTLzmcdm_qUp69D-dPAKJm2RfXZZLtPgje6lEopu2I,7662
111
111
  stouputils/data_science/utils.py,sha256=HFXI2RQZ53RbBOn_4Act2bi0z4xQlTtsuR5Am80v9JU,11084
112
- stouputils/decorators.py,sha256=t1MIMrh_veMkIAA-kHxVcYUtS6LmLi9XaT_kqA4u0C8,22529
113
- stouputils/decorators.pyi,sha256=cFPYyQOR6hFq2sOmDXjT9Ozfl2UcU1avPwbd5ffL6ho,11249
112
+ stouputils/decorators.py,sha256=rr0CoxFGmcZdk0si8WBpS_Zhw2OlEDbeseLzPzBKLQs,22440
113
+ stouputils/decorators.pyi,sha256=IFevgctRPIJU2GHoc-yIE2-8CSa8MDTZ2NsILWun1wo,11237
114
114
  stouputils/image.py,sha256=E6RYfLhE19KGxn9VdgPCTYXVmOUNK8Qe3RrwSp9OiPs,16479
115
115
  stouputils/image.pyi,sha256=bGbNTG4piQ2PCLFqZCE360O8yE635cKX94SGK0aHNJ8,8311
116
116
  stouputils/installer/__init__.py,sha256=DBwI9w3xvw0NR_jDMxmURwPi1F79kPLe7EuNjmrxW_U,502
@@ -152,11 +152,11 @@ stouputils/parallel/subprocess.pyi,sha256=gzRtpTslvoENLtSNk79fe3Xz8lV3IwuopT9uMH
152
152
  stouputils/print.py,sha256=86Qjyyj_riU7w3RQdYIHTlPVICUzKsfEBF6NBwZc20g,26745
153
153
  stouputils/print.pyi,sha256=qu7Pr1c6let2fLcBvbfrrcfCg0s3rf_1jD8FDhR1bgk,11188
154
154
  stouputils/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
155
- stouputils/typing.py,sha256=TwvxrvxhBRkyHkoOpfyXebN13M3xJb8MAjKXiNIWjew,2205
156
- stouputils/typing.pyi,sha256=U2UmFZausMYpnsUQROQE2JOwHcjx2hKV0rJuOdR57Ew,1341
155
+ stouputils/typing.py,sha256=9sj6-_lW9pyQFmxW2K1SinGCy7IWeRouUfWjPU2qDsk,2205
156
+ stouputils/typing.pyi,sha256=XRKhGA7jWjcE-DtS2UznevBxBIFqj8IZI8-J48_3GQc,1341
157
157
  stouputils/version_pkg.py,sha256=Jsp-s03L14DkiZ94vQgrlQmaxApfn9DC8M_nzT1SJLk,7014
158
158
  stouputils/version_pkg.pyi,sha256=QPvqp1U3QA-9C_CC1dT9Vahv1hXEhstbM7x5uzMZSsQ,755
159
- stouputils-1.19.0.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
160
- stouputils-1.19.0.dist-info/entry_points.txt,sha256=tx0z9VOnE-sfkmbFbA93zaBMzV3XSsKEJa_BWIqUzxw,57
161
- stouputils-1.19.0.dist-info/METADATA,sha256=CsDwe4ywRAflcv8_265i20qTTmt0kWLCwYgPL2kWOo0,14007
162
- stouputils-1.19.0.dist-info/RECORD,,
159
+ stouputils-1.19.2.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
160
+ stouputils-1.19.2.dist-info/entry_points.txt,sha256=tx0z9VOnE-sfkmbFbA93zaBMzV3XSsKEJa_BWIqUzxw,57
161
+ stouputils-1.19.2.dist-info/METADATA,sha256=4YSIMD11_I4XpSiMxVPHJYFCSNflyjXIn_DIRkBSBwo,13931
162
+ stouputils-1.19.2.dist-info/RECORD,,