stouputils 1.2.2__tar.gz → 1.2.4__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 (24) hide show
  1. {stouputils-1.2.2 → stouputils-1.2.4}/PKG-INFO +1 -1
  2. {stouputils-1.2.2 → stouputils-1.2.4}/pyproject.toml +1 -1
  3. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/io.py +2 -3
  4. {stouputils-1.2.2 → stouputils-1.2.4}/.gitignore +0 -0
  5. {stouputils-1.2.2 → stouputils-1.2.4}/LICENSE +0 -0
  6. {stouputils-1.2.2 → stouputils-1.2.4}/README.md +0 -0
  7. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/__init__.py +0 -0
  8. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/all_doctests.py +0 -0
  9. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/applications/__init__.py +0 -0
  10. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/applications/automatic_docs.py +0 -0
  11. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/archive.py +0 -0
  12. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/backup.py +0 -0
  13. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/collections.py +0 -0
  14. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/continuous_delivery/__init__.py +0 -0
  15. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/continuous_delivery/cd_utils.py +0 -0
  16. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/continuous_delivery/github.py +0 -0
  17. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/continuous_delivery/pypi.py +0 -0
  18. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/continuous_delivery/pyproject.py +0 -0
  19. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/ctx.py +0 -0
  20. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/decorators.py +0 -0
  21. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/dont_look/zip_file_override.py +0 -0
  22. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/parallel.py +0 -0
  23. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/print.py +4 -4
  24. {stouputils-1.2.2 → stouputils-1.2.4}/stouputils/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stouputils
3
- Version: 1.2.2
3
+ Version: 1.2.4
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
  Project-URL: Homepage, https://github.com/Stoupy51/stouputils
6
6
  Project-URL: Issues, https://github.com/Stoupy51/stouputils/issues
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
 
6
6
  [project]
7
7
  name = "stouputils"
8
- version = "1.2.2"
8
+ version = "1.2.4"
9
9
  description = "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."
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.10"
@@ -16,7 +16,6 @@ This module provides utilities for file management.
16
16
  import shutil
17
17
  import json
18
18
  import os
19
- import io
20
19
  from typing import IO, Any
21
20
 
22
21
  # Function that replace the "~" by the user's home directory
@@ -173,13 +172,13 @@ def super_json_load(file_path: str) -> Any:
173
172
 
174
173
 
175
174
  # JSON dump with indentation for levels
176
- def super_json_dump(data: Any, file: io.TextIOWrapper|None = None, max_level: int = 2, indent: str = '\t') -> str:
175
+ def super_json_dump(data: Any, file: IO[Any]|None = None, max_level: int = 2, indent: str = '\t') -> str:
177
176
  """ Writes the provided data to a JSON file with a specified indentation depth.
178
177
  For instance, setting max_level to 2 will limit the indentation to 2 levels.
179
178
 
180
179
  Args:
181
180
  data (Any): The data to dump (usually a dict or a list)
182
- file (io.TextIOWrapper): The file to dump the data to, if None, the data is returned as a string
181
+ file (IO[Any]): The file to dump the data to, if None, the data is returned as a string
183
182
  max_level (int): The depth of indentation to stop at (-1 for infinite)
184
183
  indent (str): The indentation character (default: '\t')
185
184
  Returns:
File without changes
File without changes
File without changes
File without changes
@@ -83,19 +83,19 @@ def info(*values: Any, color: str = GREEN, text: str = "INFO ", prefix: str = ""
83
83
  print(remove_colors(message), *(remove_colors(str(v)) for v in values), file=log_file, **print_kwargs)
84
84
 
85
85
  def debug(*values: Any, **print_kwargs: Any) -> None:
86
- """ Print a debug message looking like "[DEBUG HH:MM:SS] message" in blue by default. """
86
+ """ Print a debug message looking like "[DEBUG HH:MM:SS] message" in cyan by default. """
87
87
  if "text" not in print_kwargs:
88
88
  print_kwargs["text"] = "DEBUG"
89
89
  if "color" not in print_kwargs:
90
- print_kwargs["color"] = BLUE
90
+ print_kwargs["color"] = CYAN
91
91
  info(*values, **print_kwargs)
92
92
 
93
93
  def alt_debug(*values: Any, **print_kwargs: Any) -> None:
94
- """ Print a debug message looking like "[DEBUG HH:MM:SS] message" in cyan by default. """
94
+ """ Print a debug message looking like "[DEBUG HH:MM:SS] message" in blue by default. """
95
95
  if "text" not in print_kwargs:
96
96
  print_kwargs["text"] = "DEBUG"
97
97
  if "color" not in print_kwargs:
98
- print_kwargs["color"] = CYAN
98
+ print_kwargs["color"] = BLUE
99
99
  info(*values, **print_kwargs)
100
100
 
101
101
  def suggestion(*values: Any, **print_kwargs: Any) -> None: