wool 0.1rc3__tar.gz → 0.1rc6__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.
Potentially problematic release.
This version of wool might be problematic. Click here for more details.
- {wool-0.1rc3 → wool-0.1rc6}/PKG-INFO +2 -1
- {wool-0.1rc3 → wool-0.1rc6}/pyproject.toml +1 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_cli.py +14 -2
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_client.py +0 -1
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_logging.py +7 -1
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_task.py +6 -1
- {wool-0.1rc3 → wool-0.1rc6}/src/wool.egg-info/PKG-INFO +2 -1
- {wool-0.1rc3 → wool-0.1rc6}/README.md +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/setup.cfg +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/__init__.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_future.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_manager.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_pool.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_queue.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_typing.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_utils.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool/_worker.py +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool.egg-info/SOURCES.txt +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool.egg-info/dependency_links.txt +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool.egg-info/entry_points.txt +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool.egg-info/requires.txt +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/src/wool.egg-info/top_level.txt +0 -0
- {wool-0.1rc3 → wool-0.1rc6}/tests/test_public.py +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wool
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1rc6
|
|
4
4
|
Summary: A Python framework for distributed multiprocessing.
|
|
5
5
|
Author-email: Conrad Bzura <conrad@wool.io>
|
|
6
6
|
Maintainer-email: maintainers@wool.io
|
|
7
|
+
Classifier: Intended Audience :: Developers
|
|
7
8
|
Requires-Python: >=3.10
|
|
8
9
|
Description-Content-Type: text/markdown
|
|
9
10
|
Requires-Dist: annotated-types
|
|
@@ -4,6 +4,7 @@ requires = ["setuptools>=64", "setuptools-scm>=8"]
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
authors = [{ name = "Conrad Bzura", email = "conrad@wool.io" }]
|
|
7
|
+
classifiers = ["Intended Audience :: Developers"]
|
|
7
8
|
dependencies = ["annotated-types", "click", "debugpy"]
|
|
8
9
|
description = "A Python framework for distributed multiprocessing."
|
|
9
10
|
dynamic = ["version"]
|
|
@@ -18,12 +18,24 @@ DEFAULT_PORT = 48800
|
|
|
18
18
|
|
|
19
19
|
# PUBLIC
|
|
20
20
|
class WoolPoolCommand(click.core.Command):
|
|
21
|
-
def __init__(
|
|
21
|
+
def __init__(
|
|
22
|
+
self,
|
|
23
|
+
*args,
|
|
24
|
+
default_host="localhost",
|
|
25
|
+
default_port=0,
|
|
26
|
+
default_authkey=b"",
|
|
27
|
+
**kwargs,
|
|
28
|
+
):
|
|
22
29
|
params = kwargs.pop("params", [])
|
|
23
30
|
params = [
|
|
24
31
|
click.Option(["--host", "-h"], type=str, default=default_host),
|
|
25
32
|
click.Option(["--port", "-p"], type=int, default=default_port),
|
|
26
|
-
click.Option(
|
|
33
|
+
click.Option(
|
|
34
|
+
["--authkey", "-a"],
|
|
35
|
+
type=str,
|
|
36
|
+
default=default_authkey,
|
|
37
|
+
callback=to_bytes,
|
|
38
|
+
),
|
|
27
39
|
*params,
|
|
28
40
|
]
|
|
29
41
|
super().__init__(*args, params=params, **kwargs)
|
|
@@ -21,7 +21,13 @@ class WoolLogFilter(logging.Filter):
|
|
|
21
21
|
return True
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
__log_format__: str =
|
|
24
|
+
__log_format__: str = (
|
|
25
|
+
f"{grey(italic('pid:'))}%(process)-8d "
|
|
26
|
+
f"{grey(italic('process:'))}%(processName)-12s "
|
|
27
|
+
f"{grey(italic('thread:'))}%(threadName)-20s "
|
|
28
|
+
"%(levelname)12s %(message)-60s "
|
|
29
|
+
f"{grey(italic('%(ref)s'))}"
|
|
30
|
+
)
|
|
25
31
|
|
|
26
32
|
formatter: logging.Formatter = logging.Formatter(__log_format__)
|
|
27
33
|
|
|
@@ -47,7 +47,12 @@ def task(fn: C) -> C:
|
|
|
47
47
|
"""
|
|
48
48
|
|
|
49
49
|
@wraps(fn)
|
|
50
|
-
def wrapper(
|
|
50
|
+
def wrapper(
|
|
51
|
+
*args,
|
|
52
|
+
__wool_remote__: bool = False,
|
|
53
|
+
__wool_client__: WoolClient | None = None,
|
|
54
|
+
**kwargs,
|
|
55
|
+
) -> Coroutine:
|
|
51
56
|
# Handle static and class methods in a picklable way.
|
|
52
57
|
parent, function = resolve(fn)
|
|
53
58
|
assert parent is not None
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wool
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1rc6
|
|
4
4
|
Summary: A Python framework for distributed multiprocessing.
|
|
5
5
|
Author-email: Conrad Bzura <conrad@wool.io>
|
|
6
6
|
Maintainer-email: maintainers@wool.io
|
|
7
|
+
Classifier: Intended Audience :: Developers
|
|
7
8
|
Requires-Python: >=3.10
|
|
8
9
|
Description-Content-Type: text/markdown
|
|
9
10
|
Requires-Dist: annotated-types
|
|
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
|
|
File without changes
|