wool 0.1rc3__py3-none-any.whl → 0.1rc6__py3-none-any.whl

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/_cli.py CHANGED
@@ -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)
wool/_client.py CHANGED
@@ -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()
wool/_logging.py CHANGED
@@ -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
 
wool/_task.py CHANGED
@@ -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
@@ -1,17 +1,17 @@
1
1
  wool/__init__.py,sha256=0W39YauJFvADmbkgaESmlCnhVMGPfvipf2cYSwrBh7w,1599
2
- wool/_cli.py,sha256=gkFiWXMqbQAwoy7NLCrBwMyQ1O3SJa5JxvgHlpbUkb8,5284
3
- wool/_client.py,sha256=guo2UheHS9V4GbKvqjnxw9EKTD8xz34iI0B8pCOWnfU,5755
2
+ wool/_cli.py,sha256=_XnD-pPRIZcjUl3zsTAx9mrOI_Vusmt_45wDjrMNr4Y,5418
3
+ wool/_client.py,sha256=PY1hYar1XcUuhIhXIYWeAAbI08XKRBxvZKZOWqf_dgY,5754
4
4
  wool/_future.py,sha256=HDLEarPpIMpGbyclkGHeCK-uk1_QwGzcjP37Cow7Dug,2823
5
- wool/_logging.py,sha256=kFBxbSfhp5GRaZtEinb4Y8Ux7k6m1a8ouTe7-iCihRk,989
5
+ wool/_logging.py,sha256=r__hUA8wnYfLwxUAMSgX6QTCkZB3XZsrjthfMkg0sMk,1028
6
6
  wool/_manager.py,sha256=ZE0nKz-kzk-fSfrVNVCkeVFFWCPKSjG2p76R6aXBRzU,3758
7
7
  wool/_pool.py,sha256=pYV10zSszB8CbFoe0yvs4X37V5ZpKi5Xn1l8oXfSX4A,9538
8
8
  wool/_queue.py,sha256=V_xlY95ba7jDuEzFTOvsizLp4bXCEpaDKw3e4sfXISM,960
9
- wool/_task.py,sha256=tFRiEfkwi1xTSeWyVeQvCbW-Vc5-1oqK34VN5S2nYpc,8530
9
+ wool/_task.py,sha256=sIUO5RIT26-mXueyFMYzSdURSVmttcruzA7XoeThQIY,8569
10
10
  wool/_typing.py,sha256=-ScOIf14D_l8HYG_QZ3NgzsTeRLZvpiQ1txWef2-taU,325
11
11
  wool/_utils.py,sha256=hx9v6p1LV3-SkR_pH0jfqAVtjOzMKLuZLoLd8e7GnfU,1831
12
12
  wool/_worker.py,sha256=Tkhbu6eTcDNZ1LYgb0fGNDuSVKbl5ZTdWQHAGfRzAUo,4734
13
- wool-0.1rc3.dist-info/METADATA,sha256=CIZugNnxJsC0ElhzrjYu5JLvwoKPfj8NsvAIMH-bgmM,3704
14
- wool-0.1rc3.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
15
- wool-0.1rc3.dist-info/entry_points.txt,sha256=ybzb5TYXou-2cKC8HP5p0X8bw6Iyv7UMasqml6zlO1k,39
16
- wool-0.1rc3.dist-info/top_level.txt,sha256=K0EPaZfk825mzy0W1dOkRkitbqFdtiacj3GQfnI9_-E,5
17
- wool-0.1rc3.dist-info/RECORD,,
13
+ wool-0.1rc6.dist-info/METADATA,sha256=9Mhnqdu7uGqvWd19rGGMv4BbSnDT6J1WUeFQlvr62vM,3748
14
+ wool-0.1rc6.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
15
+ wool-0.1rc6.dist-info/entry_points.txt,sha256=ybzb5TYXou-2cKC8HP5p0X8bw6Iyv7UMasqml6zlO1k,39
16
+ wool-0.1rc6.dist-info/top_level.txt,sha256=K0EPaZfk825mzy0W1dOkRkitbqFdtiacj3GQfnI9_-E,5
17
+ wool-0.1rc6.dist-info/RECORD,,
File without changes