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.

@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wool
3
- Version: 0.1rc3
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__(self, *args, default_host="localhost", default_port=0, default_authkey=b"", **kwargs):
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(["--authkey", "-a"], type=str, default=default_authkey, callback=to_bytes),
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)
@@ -159,7 +159,6 @@ class WoolClient(BaseClient):
159
159
  super().__init__(address, authkey=authkey)
160
160
  self._outer_client: WoolClient | None = None
161
161
 
162
-
163
162
  def __enter__(self):
164
163
  if not self.connected:
165
164
  self.connect()
@@ -21,7 +21,13 @@ class WoolLogFilter(logging.Filter):
21
21
  return True
22
22
 
23
23
 
24
- __log_format__: str = f"{grey(italic('pid:'))}%(process)-8d {grey(italic('process:'))}%(processName)-12s {grey(italic('thread:'))}%(threadName)-20s %(levelname)12s %(message)-60s {grey(italic('%(ref)s'))}"
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(*args, __wool_remote__: bool = False, __wool_client__: WoolClient | None = None, **kwargs) -> Coroutine:
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.1rc3
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