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.
- {winiutils-2.7.2 → winiutils-2.8.0}/PKG-INFO +3 -1
- {winiutils-2.7.2 → winiutils-2.8.0}/README.md +2 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/pyproject.toml +11 -1
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/concurrent.py +2 -2
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/multiprocessing.py +3 -3
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tests/fixtures/fixtures.py +1 -1
- {winiutils-2.7.2 → winiutils-2.8.0}/LICENSE +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/dataframe/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/dataframe/cleaning.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/dicts.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/text/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/data/structures/text/string_.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/multithreading.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/iterate.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/mixins/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/mixins/meta.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/oop/mixins/mixin.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/security/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/security/cryptography.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/security/keyring.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/py.typed +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tests/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tests/fixtures/__init__.py +0 -0
- {winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/rig/tools/__init__.py +0 -0
- {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.
|
|
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
|
[](https://github.com/Winipedia/winiutils/actions/workflows/health_check.yml)
|
|
40
40
|
[](https://github.com/Winipedia/winiutils/actions/workflows/deploy.yml)
|
|
41
41
|
<!-- code-quality -->
|
|
42
|
+
[](https://github.com/osprey-oss/deptry)
|
|
42
43
|
[](https://github.com/rvben/rumdl)
|
|
43
44
|
[](https://github.com/astral-sh/ruff)
|
|
45
|
+
[](https://github.com/crate-ci/typos)
|
|
44
46
|
[](https://github.com/astral-sh/ty)
|
|
45
47
|
[](https://github.com/j178/prek)
|
|
46
48
|
<!-- testing -->
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
[](https://github.com/Winipedia/winiutils/actions/workflows/health_check.yml)
|
|
8
8
|
[](https://github.com/Winipedia/winiutils/actions/workflows/deploy.yml)
|
|
9
9
|
<!-- code-quality -->
|
|
10
|
+
[](https://github.com/osprey-oss/deptry)
|
|
10
11
|
[](https://github.com/rvben/rumdl)
|
|
11
12
|
[](https://github.com/astral-sh/ruff)
|
|
13
|
+
[](https://github.com/crate-ci/typos)
|
|
12
14
|
[](https://github.com/astral-sh/ty)
|
|
13
15
|
[](https://github.com/j178/prek)
|
|
14
16
|
<!-- testing -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "winiutils"
|
|
3
|
-
version = "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
|
-
|
|
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
|
|
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]
|
{winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/multiprocessing.py
RENAMED
|
@@ -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
|
|
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 =
|
|
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 =
|
|
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:
|
|
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
|
{winiutils-2.7.2 → winiutils-2.8.0}/src/winiutils/core/iterating/concurrent/multithreading.py
RENAMED
|
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
|