winiutils 2.7.2__tar.gz → 2.8.0__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 (33) hide show
  1. {winiutils-2.7.2 → winiutils-2.8.0}/PKG-INFO +3 -1
  2. {winiutils-2.7.2 → winiutils-2.8.0}/README.md +2 -0
  3. {winiutils-2.7.2 → winiutils-2.8.0}/pyproject.toml +11 -1
  4. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/concurrent.py +2 -2
  5. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/multiprocessing.py +3 -3
  6. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tests/fixtures/fixtures.py +1 -1
  7. {winiutils-2.7.2 → winiutils-2.8.0}/LICENSE +0 -0
  8. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/__init__.py +0 -0
  9. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/__init__.py +0 -0
  10. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/__init__.py +0 -0
  11. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/dataframe/__init__.py +0 -0
  12. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/dataframe/cleaning.py +0 -0
  13. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/__init__.py +0 -0
  14. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/dicts.py +0 -0
  15. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/text/__init__.py +0 -0
  16. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/text/string_.py +0 -0
  17. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/__init__.py +0 -0
  18. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/__init__.py +0 -0
  19. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/multithreading.py +0 -0
  20. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/iterate.py +0 -0
  21. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/__init__.py +0 -0
  22. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/mixins/__init__.py +0 -0
  23. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/mixins/meta.py +0 -0
  24. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/mixins/mixin.py +0 -0
  25. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/security/__init__.py +0 -0
  26. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/security/cryptography.py +0 -0
  27. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/security/keyring.py +0 -0
  28. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/py.typed +0 -0
  29. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/__init__.py +0 -0
  30. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tests/__init__.py +0 -0
  31. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tests/fixtures/__init__.py +0 -0
  32. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tools/__init__.py +0 -0
  33. {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tools/pyrigger.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winiutils
3
- Version: 2.7.2
3
+ Version: 2.8.0
4
4
  Summary: A utility library for Python development
5
5
  Keywords: pyrig
6
6
  Author: Winipedia
@@ -39,8 +39,10 @@ Description-Content-Type: text/markdown
39
39
  [![CI](https://img.shields.io/github/actions/workflow/status/Winipedia/winiutils/health_check.yml?label=CI&logo=github)](https://github.com/Winipedia/winiutils/actions/workflows/health_check.yml)
40
40
  [![CD](https://img.shields.io/github/actions/workflow/status/Winipedia/winiutils/deploy.yml?label=CD&logo=github)](https://github.com/Winipedia/winiutils/actions/workflows/deploy.yml)
41
41
  <!-- code-quality -->
42
+ [![DependencyChecker](https://img.shields.io/badge/dependencies-deptry-blue)](https://github.com/osprey-oss/deptry)
42
43
  [![MarkdownLinter](https://img.shields.io/badge/markdown-rumdl-darkgreen)](https://github.com/rvben/rumdl)
43
44
  [![PythonLinter](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
45
+ [![SpellChecker](https://img.shields.io/badge/spell--check-typos-blue)](https://github.com/crate-ci/typos)
44
46
  [![TypeChecker](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)
45
47
  [![VersionControlHookManager](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
46
48
  <!-- testing -->
@@ -7,8 +7,10 @@
7
7
  [![CI](https://img.shields.io/github/actions/workflow/status/Winipedia/winiutils/health_check.yml?label=CI&logo=github)](https://github.com/Winipedia/winiutils/actions/workflows/health_check.yml)
8
8
  [![CD](https://img.shields.io/github/actions/workflow/status/Winipedia/winiutils/deploy.yml?label=CD&logo=github)](https://github.com/Winipedia/winiutils/actions/workflows/deploy.yml)
9
9
  <!-- code-quality -->
10
+ [![DependencyChecker](https://img.shields.io/badge/dependencies-deptry-blue)](https://github.com/osprey-oss/deptry)
10
11
  [![MarkdownLinter](https://img.shields.io/badge/markdown-rumdl-darkgreen)](https://github.com/rvben/rumdl)
11
12
  [![PythonLinter](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
13
+ [![SpellChecker](https://img.shields.io/badge/spell--check-typos-blue)](https://github.com/crate-ci/typos)
12
14
  [![TypeChecker](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)
13
15
  [![VersionControlHookManager](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
14
16
  <!-- testing -->
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "winiutils"
3
- version = "2.7.2"
3
+ version = "2.8.0"
4
4
  description = "A utility library for Python development"
5
5
  license = "MIT"
6
6
  requires-python = ">=3.12"
@@ -50,6 +50,7 @@ Changelog = "https://github.com/Winipedia/winiutils/releases"
50
50
  [dependency-groups]
51
51
  dev = [
52
52
  "bandit>=1.9.3",
53
+ "deptry>=0.25.1",
53
54
  "mkdocs-material>=9.7.1",
54
55
  "mkdocs-mermaid2-plugin>=1.2.3",
55
56
  "mkdocs>=1.6.1",
@@ -67,6 +68,7 @@ dev = [
67
68
  "ty>=0.0.16",
68
69
  "types-defusedxml>=0.7.0.20250822",
69
70
  "types-tqdm>=4.67.3.20260205",
71
+ "typos>=1.47.2",
70
72
  ]
71
73
 
72
74
  [build-system]
@@ -117,3 +119,11 @@ skips = [
117
119
  "*/tests/*.py",
118
120
  "*/test_*/*.py",
119
121
  ]
122
+
123
+ [tool.deptry]
124
+ root = "src"
125
+
126
+ [tool.deptry.per_rule_ignores]
127
+ DEP002 = [
128
+ "pyrig",
129
+ ]
@@ -260,7 +260,7 @@ def concurrent_loop( # noqa: PLR0913
260
260
  for I/O-bound tasks instead.
261
261
  """
262
262
  from winiutils.core.iterating.concurrent.multiprocessing import ( # noqa: PLC0415 # avoid circular import
263
- get_spwan_pool,
263
+ get_spawn_pool,
264
264
  )
265
265
  from winiutils.core.iterating.concurrent.multithreading import ( # noqa: PLC0415 # avoid circular import
266
266
  imap_unordered,
@@ -277,7 +277,7 @@ def concurrent_loop( # noqa: PLR0913
277
277
  pool_executor = (
278
278
  ThreadPoolExecutor(max_workers=max_workers)
279
279
  if threading
280
- else get_spwan_pool(processes=max_workers)
280
+ else get_spawn_pool(processes=max_workers)
281
281
  )
282
282
  with pool_executor as pool:
283
283
  map_func: Callable[[Callable[..., Any], Iterable[Any]], Any]
@@ -35,7 +35,7 @@ from winiutils.core.iterating.concurrent.concurrent import concurrent_loop
35
35
  logger = logging.getLogger(__name__)
36
36
 
37
37
 
38
- def get_spwan_pool(*args: Any, **kwargs: Any) -> Pool:
38
+ def get_spawn_pool(*args: Any, **kwargs: Any) -> Pool:
39
39
  """Create a multiprocessing pool with the spawn context.
40
40
 
41
41
  Uses the 'spawn' start method which creates a fresh Python interpreter
@@ -50,7 +50,7 @@ def get_spwan_pool(*args: Any, **kwargs: Any) -> Pool:
50
50
  A multiprocessing Pool configured with the spawn context.
51
51
 
52
52
  Example:
53
- >>> pool = get_spwan_pool(processes=4)
53
+ >>> pool = get_spawn_pool(processes=4)
54
54
  >>> with pool:
55
55
  ... results = pool.map(square, [1, 2, 3])
56
56
  """
@@ -102,7 +102,7 @@ def cancel_on_timeout(seconds: float, message: str) -> Callable[..., Any]:
102
102
  def decorator(func: Callable[..., Any]) -> Callable[..., Any]:
103
103
  @wraps(func)
104
104
  def wrapper(*args: object, **kwargs: object) -> object:
105
- spawn_pool = get_spwan_pool(processes=1)
105
+ spawn_pool = get_spawn_pool(processes=1)
106
106
  with spawn_pool as pool:
107
107
  async_result = pool.apply_async(func, args, kwargs)
108
108
  try:
@@ -9,7 +9,7 @@ by pyrig via the pytest_plugins mechanism.
9
9
  from collections.abc import Callable, Iterator
10
10
 
11
11
  import keyring
12
- import pytest
12
+ import pytest # deptry: ignore[DEP004]
13
13
 
14
14
 
15
15
  @pytest.fixture
File without changes