robo-goggles 0.1.2__tar.gz → 0.1.4__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 robo-goggles might be problematic. Click here for more details.
- {robo_goggles-0.1.2/robo_goggles.egg-info → robo_goggles-0.1.4}/PKG-INFO +3 -3
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/__init__.py +31 -6
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/pyproject.toml +3 -3
- {robo_goggles-0.1.2 → robo_goggles-0.1.4/robo_goggles.egg-info}/PKG-INFO +3 -3
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/robo_goggles.egg-info/requires.txt +2 -2
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/LICENSE +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/README.md +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/_core/integrations/__init__.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/_core/integrations/console.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/_core/integrations/storage.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/_core/integrations/wandb.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/_core/logger.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/_core/routing.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/config.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/decorators.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/history/__init__.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/history/buffer.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/history/spec.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/history/types.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/history/utils.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/media.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/shutdown.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/goggles/types.py +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/robo_goggles.egg-info/SOURCES.txt +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/robo_goggles.egg-info/dependency_links.txt +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/robo_goggles.egg-info/top_level.txt +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/setup.cfg +0 -0
- {robo_goggles-0.1.2 → robo_goggles-0.1.4}/tests/test_api.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robo-goggles
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Observability framework for robotics research
|
|
5
5
|
Author-email: Antonio Terpin <aterpin@ethz.ch>, Francesco Banelli <fbanelli@ethz.ch>
|
|
6
6
|
License: MIT
|
|
@@ -29,8 +29,8 @@ Requires-Dist: portal>=3.7.3
|
|
|
29
29
|
Requires-Dist: typing-extensions>=4.15.0
|
|
30
30
|
Requires-Dist: netifaces>=0.11.0
|
|
31
31
|
Requires-Dist: pyyaml>=6.0.3
|
|
32
|
-
Requires-Dist: numpy>=
|
|
33
|
-
Requires-Dist: imageio
|
|
32
|
+
Requires-Dist: numpy>=1.23
|
|
33
|
+
Requires-Dist: imageio>=2.37.0
|
|
34
34
|
Requires-Dist: matplotlib>=3.10.7
|
|
35
35
|
Provides-Extra: dev
|
|
36
36
|
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
"""Goggles: Structured logging and experiment tracking.
|
|
2
|
+
===
|
|
2
3
|
|
|
3
4
|
This package provides a stable public API for logging experiments, metrics,
|
|
4
5
|
and media in a consistent and composable way.
|
|
5
6
|
|
|
6
7
|
>>> import goggles as gg
|
|
7
8
|
>>>
|
|
8
|
-
>>>
|
|
9
|
-
>>>
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
>>> logger = gg.get_logger(__name__)
|
|
10
|
+
>>> gg.attach(
|
|
11
|
+
gg.ConsoleHandler(name="examples.basic.console", level=gg.INFO),
|
|
12
|
+
scopes=["global"],
|
|
13
|
+
)
|
|
14
|
+
>>> logger.info("Hello, world!")
|
|
15
|
+
>>> gg.attach(
|
|
16
|
+
gg.LocalStorageHandler(
|
|
17
|
+
path=Path("examples/logs"),
|
|
18
|
+
name="examples.jsonl",
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
>>> logger.scalar("awesomeness", 42)
|
|
12
22
|
|
|
13
23
|
See Also:
|
|
14
24
|
- README.md for detailed usage examples.
|
|
15
25
|
- API docs for full reference of public interfaces.
|
|
16
26
|
- Internal implementations live under `goggles/_core/`
|
|
17
27
|
|
|
18
|
-
"""
|
|
28
|
+
""" # noqa: D205
|
|
19
29
|
|
|
20
30
|
from __future__ import annotations
|
|
21
31
|
|
|
@@ -52,7 +62,7 @@ GOGGLES_PORT = os.getenv("GOGGLES_PORT", "2304")
|
|
|
52
62
|
# Handler registry for custom handlers
|
|
53
63
|
_HANDLER_REGISTRY: Dict[str, type] = {}
|
|
54
64
|
GOGGLES_HOST = os.getenv("GOGGLES_HOST", "localhost")
|
|
55
|
-
GOGGLES_ASYNC = os.getenv("GOGGLES_ASYNC", "
|
|
65
|
+
GOGGLES_ASYNC = os.getenv("GOGGLES_ASYNC", "1").lower() in ("1", "true", "yes")
|
|
56
66
|
|
|
57
67
|
# Cache the implementation after first use to avoid repeated imports
|
|
58
68
|
__impl_get_bus: Optional[Callable[[], EventBus]] = None
|
|
@@ -753,6 +763,16 @@ def _get_handler_class(class_name: str) -> type:
|
|
|
753
763
|
)
|
|
754
764
|
|
|
755
765
|
|
|
766
|
+
# ---------------------------------------------------------------------------
|
|
767
|
+
# Logging Levels
|
|
768
|
+
# ---------------------------------------------------------------------------
|
|
769
|
+
|
|
770
|
+
INFO = logging.INFO
|
|
771
|
+
DEBUG = logging.DEBUG
|
|
772
|
+
WARNING = logging.WARNING
|
|
773
|
+
ERROR = logging.ERROR
|
|
774
|
+
CRITICAL = logging.CRITICAL
|
|
775
|
+
|
|
756
776
|
try:
|
|
757
777
|
from ._core.integrations.wandb import WandBHandler
|
|
758
778
|
except Exception:
|
|
@@ -773,6 +793,11 @@ __all__ = [
|
|
|
773
793
|
"ConsoleHandler",
|
|
774
794
|
"LocalStorageHandler",
|
|
775
795
|
"WandBHandler",
|
|
796
|
+
"INFO",
|
|
797
|
+
"DEBUG",
|
|
798
|
+
"WARNING",
|
|
799
|
+
"ERROR",
|
|
800
|
+
"CRITICAL",
|
|
776
801
|
]
|
|
777
802
|
|
|
778
803
|
# ---------------------------------------------------------------------------
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "robo-goggles"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name = "Antonio Terpin", email = "aterpin@ethz.ch" },
|
|
10
10
|
{ name = "Francesco Banelli", email = "fbanelli@ethz.ch" },
|
|
@@ -34,8 +34,8 @@ dependencies = [
|
|
|
34
34
|
"typing-extensions>=4.15.0",
|
|
35
35
|
"netifaces>=0.11.0",
|
|
36
36
|
"pyyaml>=6.0.3",
|
|
37
|
-
"numpy>=
|
|
38
|
-
"imageio
|
|
37
|
+
"numpy>=1.23",
|
|
38
|
+
"imageio>=2.37.0",
|
|
39
39
|
"matplotlib>=3.10.7",
|
|
40
40
|
]
|
|
41
41
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robo-goggles
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Observability framework for robotics research
|
|
5
5
|
Author-email: Antonio Terpin <aterpin@ethz.ch>, Francesco Banelli <fbanelli@ethz.ch>
|
|
6
6
|
License: MIT
|
|
@@ -29,8 +29,8 @@ Requires-Dist: portal>=3.7.3
|
|
|
29
29
|
Requires-Dist: typing-extensions>=4.15.0
|
|
30
30
|
Requires-Dist: netifaces>=0.11.0
|
|
31
31
|
Requires-Dist: pyyaml>=6.0.3
|
|
32
|
-
Requires-Dist: numpy>=
|
|
33
|
-
Requires-Dist: imageio
|
|
32
|
+
Requires-Dist: numpy>=1.23
|
|
33
|
+
Requires-Dist: imageio>=2.37.0
|
|
34
34
|
Requires-Dist: matplotlib>=3.10.7
|
|
35
35
|
Provides-Extra: dev
|
|
36
36
|
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|