expr_tracker 0.1.4__tar.gz → 0.1.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: expr_tracker
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Add your description here
5
5
  Author-email: HSPK <whxway@whu.edu.cn>
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,7 @@
1
1
  from typing import Literal
2
2
  from contextvars import ContextVar
3
3
  from loguru import logger
4
+ import os
4
5
 
5
6
  _tracker: ContextVar["Tracker | None"] = ContextVar("tracker", default=None)
6
7
 
@@ -12,6 +13,10 @@ def get_backend(backend: str | object):
12
13
  try:
13
14
  import wandb
14
15
 
16
+ wandb.login(
17
+ key=os.getenv("WANDB_API_KEY", None),
18
+ host=os.getenv("WANDB_HOST", None),
19
+ )
15
20
  return wandb
16
21
  except ImportError:
17
22
  raise ImportError("WandB backend is not installed.")
File without changes
File without changes
File without changes