wandb 0.19.11__py3-none-musllinux_1_2_x86_64.whl → 0.19.12rc1__py3-none-musllinux_1_2_x86_64.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.
wandb/__init__.py CHANGED
@@ -10,7 +10,7 @@ For reference documentation, see https://docs.wandb.com/ref/python.
10
10
  """
11
11
  from __future__ import annotations
12
12
 
13
- __version__ = "0.19.11"
13
+ __version__ = "0.19.12rc1"
14
14
 
15
15
 
16
16
  from wandb.errors import Error
wandb/__init__.pyi CHANGED
@@ -106,7 +106,7 @@ if TYPE_CHECKING:
106
106
  import wandb
107
107
  from wandb.plot import CustomChart
108
108
 
109
- __version__: str = "0.19.11"
109
+ __version__: str = "0.19.12rc1"
110
110
 
111
111
  run: Run | None
112
112
  config: wandb_config.Config
wandb/bin/gpu_stats CHANGED
Binary file
wandb/bin/wandb-core CHANGED
Binary file
@@ -18,10 +18,6 @@ from wandb.sdk.mailbox import HandleAbandonedError, Mailbox, MailboxClosedError
18
18
  from wandb.sdk.service import service
19
19
 
20
20
 
21
- class WandbServiceNotOwnedError(Exception):
22
- """Raised when the current process does not own the service process."""
23
-
24
-
25
21
  class WandbServiceConnectionError(Exception):
26
22
  """Raised on failure to connect to the service process."""
27
23
 
@@ -196,35 +192,35 @@ class ServiceConnection:
196
192
  request._info.stream_id = run_id
197
193
  self._client.send_server_request(spb.ServerRequest(inform_start=request))
198
194
 
199
- def teardown(self, exit_code: int) -> int:
200
- """Shuts down the service process and returns its exit code.
195
+ def teardown(self, exit_code: int) -> int | None:
196
+ """Close the connection.
197
+
198
+ Stop reading responses on the connection, and if this connection owns
199
+ the service process, send a teardown message and wait for it to shut
200
+ down.
201
201
 
202
202
  This may only be called once.
203
203
 
204
204
  Returns:
205
- The exit code of the service process.
206
-
207
- Raises:
208
- WandbServiceNotOwnedError: If the current process did not start
209
- the service process.
205
+ The exit code of the service process, or None if the process was
206
+ not owned by this connection.
210
207
  """
211
- if not self._proc:
212
- raise WandbServiceNotOwnedError(
213
- "Cannot tear down service started by different process",
214
- )
215
-
216
- assert not self._torn_down
208
+ if self._torn_down:
209
+ raise AssertionError("Already torn down.")
217
210
  self._torn_down = True
218
211
 
219
212
  if self._cleanup:
220
213
  self._cleanup()
221
214
 
222
- # Clear the service token to prevent new connections from being made.
223
- service_token.clear_service_token()
224
-
225
215
  # Stop reading responses on the socket.
226
216
  self._router.join()
227
217
 
218
+ if not self._proc:
219
+ return None
220
+
221
+ # Clear the service token to prevent new connections to the process.
222
+ service_token.clear_service_token()
223
+
228
224
  self._client.send_server_request(
229
225
  spb.ServerRequest(
230
226
  inform_teardown=spb.ServerInformTeardownRequest(
wandb/sdk/wandb_setup.py CHANGED
@@ -307,12 +307,12 @@ class _WandbSetup:
307
307
  if not self._connection:
308
308
  return
309
309
 
310
- internal_exit_code = self._connection.teardown(exit_code or 0)
311
-
312
310
  # Reset to None so that setup() creates a new connection.
311
+ connection = self._connection
313
312
  self._connection = None
314
313
 
315
- if internal_exit_code != 0:
314
+ internal_exit_code = connection.teardown(exit_code or 0)
315
+ if internal_exit_code not in (None, 0):
316
316
  sys.exit(internal_exit_code)
317
317
 
318
318
  def ensure_service(self) -> ServiceConnection:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wandb
3
- Version: 0.19.11
3
+ Version: 0.19.12rc1
4
4
  Summary: A CLI and library for interacting with the Weights & Biases API.
5
5
  Project-URL: Source, https://github.com/wandb/wandb
6
6
  Project-URL: Bug Reports, https://github.com/wandb/wandb/issues
@@ -1,9 +1,9 @@
1
1
  package_readme.md,sha256=U9047nyMDICgctm1HLm4HfXwFnFKsEn2m77hsYPUZ1I,4298
2
- wandb-0.19.11.dist-info/RECORD,,
3
- wandb-0.19.11.dist-info/METADATA,sha256=gVmAK68XIW9ZWlg4--FcNF2qbJIq8fZzsQ_NjV2RWSU,10259
4
- wandb-0.19.11.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
5
- wandb-0.19.11.dist-info/WHEEL,sha256=RxvhifuBhLd6SN-6iyiE0YaR0dAdJ7WRhPtwoKcEtTM,105
6
- wandb-0.19.11.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
2
+ wandb-0.19.12rc1.dist-info/RECORD,,
3
+ wandb-0.19.12rc1.dist-info/METADATA,sha256=vMgGUYCKJEfrEq3d_3Eo0rpiBIXYwdatPwvHavX4ot8,10262
4
+ wandb-0.19.12rc1.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
5
+ wandb-0.19.12rc1.dist-info/WHEEL,sha256=RxvhifuBhLd6SN-6iyiE0YaR0dAdJ7WRhPtwoKcEtTM,105
6
+ wandb-0.19.12rc1.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
7
7
  wandb/data_types.py,sha256=M-wqAO0FtIqvj28556u3h4nzSwlRcbxhXoX0B9jlJSo,2283
8
8
  wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  wandb/wandb_controller.py,sha256=SksJdgwn14PpnUoIaBjJ9Ki4Nksl9BpQGGn42hT0xZg,24936
@@ -11,12 +11,12 @@ wandb/util.py,sha256=ci-aL--1ukiH4tBr2Hz_T9CKok_2Fev90D-qY5V0R8U,63815
11
11
  wandb/trigger.py,sha256=PaitU3sX6ekGkd2R8iD6d_VtI72ypF7LaPBXh3rXY7Q,615
12
12
  wandb/_iterutils.py,sha256=bOhOrOENEDzOMtyQqHysivzHri9axcVlCfXt4Ai1ot8,1545
13
13
  wandb/wandb_run.py,sha256=CNh9S6uubFk8FphQjzkbvedyyGCN9aBEsRBKjy8tqqs,155
14
- wandb/__init__.py,sha256=F1oW4Oflh9R5-OZ5Xj2y-pxEjIrlC33lsCf-_zYhdEQ,7148
14
+ wandb/__init__.py,sha256=h-BqHsfabAKDyqLt8M3IOEPcElSA0IXpkhPfdRpM7nk,7151
15
15
  wandb/__main__.py,sha256=gripuDgB7J8wMMeJt4CIBRjn1BMSFr5zvsrt585Pnj4,64
16
16
  wandb/env.py,sha256=c0iAMhkUsNayCAno7gbs8NTZ_4OKoqWW94Uip7Dc9ZI,14182
17
17
  wandb/sklearn.py,sha256=hbPkefhS39A1RRymn0nHZZmKM2TrOd4xjlkthTZe9pY,803
18
18
  wandb/jupyter.py,sha256=dMCV2TVomJeHhbhEZTHZbxsxuGHXYGkOveK_3IbXju8,17451
19
- wandb/__init__.pyi,sha256=3VFHLCEDLBaqfL6m8E67cewPBXc0pptuEGqBKj9doD4,48325
19
+ wandb/__init__.pyi,sha256=4ngOvMcsz4c6J-4lu7LOE1R6WfMPW15H1ywVc2UhQpI,48328
20
20
  wandb/wandb_agent.py,sha256=0TKjcJ8jxEqaXMrs_dIflXfWFFOaulfSjzp_fpYiXD0,20985
21
21
  wandb/mpmain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  wandb/mpmain/__main__.py,sha256=bLhspPeHQvNMyRNR7xi9v-02XfW1mhJY2yBWI3bYtbg,57
@@ -42,7 +42,7 @@ wandb/sdk/__init__.py,sha256=N-GTAC0AzbZF2J8RzB33DTmYk9u-jubllCwvhWrPgsE,813
42
42
  wandb/sdk/wandb_require.py,sha256=eYDG4oH1pwik2tHJVEdvivo4R2RypoITFomgr7umMhc,3104
43
43
  wandb/sdk/wandb_sweep.py,sha256=Sg_JqxVzmjUBvii41azpdr-c6RPwHOBnSha8k7jrRhk,4028
44
44
  wandb/sdk/wandb_summary.py,sha256=yQdOVIPrZaZanhBQ7yuSfPLX0x6dxwkN_KAn4SgjSZU,4536
45
- wandb/sdk/wandb_setup.py,sha256=3dvnkFlSuoa8BxzyKp_7qtj2tC2L26ge-rWolKQzfgY,15197
45
+ wandb/sdk/wandb_setup.py,sha256=Yk9GlIik9AAChofQUvtkivDnlCiqiHM9-K1eJ03OWtw,15240
46
46
  wandb/sdk/wandb_alerts.py,sha256=SwBPBiXRxknMTMGbsVoMMWqWK65UWMcKAdTWZtdwAeo,193
47
47
  wandb/sdk/wandb_settings.py,sha256=y3T8UeSdNBqrKVOlmAXpwCREXhf1aZ-cWsFpQGooyuk,64830
48
48
  wandb/sdk/wandb_require_helpers.py,sha256=ZmKv5aXXHDTTU6nYHMLKW4_pt9X-PlaMtbRJl77kHX8,1331
@@ -156,7 +156,7 @@ wandb/sdk/lib/timed_input.py,sha256=D7vx3N3m4LlxwkQpzS7lDi7IOnccqZ3WfLlDYRs8Oes,
156
156
  wandb/sdk/lib/runid.py,sha256=Qa-5ft4B85YUazkV_18OYwf9JhMaAVp0JAInZzxzX5o,392
157
157
  wandb/sdk/lib/server.py,sha256=dn0RXjAnpmigAULLyq75XHYyHxw17MLCJ9fhPq2v22I,1623
158
158
  wandb/sdk/lib/filenames.py,sha256=GvzWOq85BO_Od7f69PkRKS6zYhQ88dTCtMr3c19jLEk,2006
159
- wandb/sdk/lib/service_connection.py,sha256=pf1T0isbDwTkv9MvuIpuk1MHTVkCebK4N8n9pXF4SSg,7455
159
+ wandb/sdk/lib/service_connection.py,sha256=J6WHS95CdloYT-C_KgkuQa9pJBXkp23mobhAG1BC9JQ,7352
160
160
  wandb/sdk/lib/gitlib.py,sha256=RjlbRyZpIRqc0toVJQSpNxVgPpwx1LSjeF9LSuf4bAY,7836
161
161
  wandb/sdk/lib/printer.py,sha256=fqwEn2RB4ZJh8UgYB41wfz0nnWm5bPQmxo-2gWwiy3A,16318
162
162
  wandb/sdk/lib/ipython.py,sha256=I2iT6vY90Aaws7tmjzW_CrUdQFmfV9-WhAPk8at9LQg,3782
@@ -313,8 +313,8 @@ wandb/docker/wandb-entrypoint.sh,sha256=P4eTMG7wYsgTfJIws_HT7QFlYBI70ZLnNlDGTZdm
313
313
  wandb/docker/auth.py,sha256=Tr-BMoiMJjX8TsdUquVBBLyfxEJWR4WQZGyz6vBaJk0,15009
314
314
  wandb/sync/__init__.py,sha256=BzzKmWKjsrCTBAj24d-lJOEPkFUmTfvaK2MeXplSwcc,93
315
315
  wandb/sync/sync.py,sha256=um8jeL7Ba0Hx1IBhJvXArcqBTZ4RF4xqVANPF8HbC0Y,15732
316
- wandb/bin/gpu_stats,sha256=LYyvzTe-XmA7D4gogvCDIeCcsrXFuZZecR3zT0s_7Nc,11073752
317
- wandb/bin/wandb-core,sha256=LWazDWTQ9-v_Gl-FRgPCVV58tiYdruwI4Vbj3_QAnnE,49184952
316
+ wandb/bin/gpu_stats,sha256=B2ETklKOCpagj0gBs2F3cD6A5p2Rc_KT5iatt1s0pL8,11131600
317
+ wandb/bin/wandb-core,sha256=rSDFDYtn6ZNAkvQhyyeCpwiZf54oR7p9vNC0OAHsZ4A,49184952
318
318
  wandb/analytics/__init__.py,sha256=WG_Mh20Hr8d3vDmGMcfDXCMEIew3uzDYZAJwFsrbAug,50
319
319
  wandb/analytics/sentry.py,sha256=-Fn7698AuFI68uaqxRGlGXnv-J6fnYxJOrSE_vv-nDQ,8411
320
320
  wandb/apis/internal.py,sha256=Whl1x29iH_DdIu47vUVvDSyOavEVaovdmlqXmu4-yOw,7622