🔬 Scope
Scalable metrics logging and analysis.
Features
- 🚀 Scalable: Quickly log and view petabytes of metrics, thousands of keys, and large videos.
- 🎞️ Formats: Log and view scalars, text, images, and videos. Easy to extend with custom formats.
- 🧑🏻🔬 Productivity: Metrics viewer with focus on power users with full keyboard support.
- ☁️ Cloud support: Directly write to and read from Cloud storage via pathlib interface.
- 🍃 Lightweight: The writer and reader measure only ~400 lines of Python code.
- 🧱 Reliable: Unit tested and used across diverse research projects.
Usage
Installation
pip install scope
Writing
import scope
writer = scope.Writer(logdir)
for step in range(3):
writer.add(step, {
'foo': 42,
'bar': np.zeros((100, 640, 360, 3), np.uint8),
'baz': 'Hello World',
})
writer.flush()
Viewing
python -m scope.viewer --basedir ... --port 8000
Reading
import scope
reader = scope.Reader(logdir)
print(reader.keys()) # ('foo', 'bar', 'baz')
print(reader.length('foo')) # 3
steps, values = reader['foo']
print(steps) # np.array([0, 1, 2], np.int64)
print(values) # np.array([42, 42, 42], np.float64)
steps, filenames = reader['bar']
reader.load('bar', filenames[-1]) # np.zeros((100, 640, 360, 3), np.uint8)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scope-0.7.0.tar.gz
(26.2 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
scope-0.7.0-py3-none-any.whl
(29.5 MB
view details)
File details
Details for the file scope-0.7.0.tar.gz.
File metadata
- Download URL: scope-0.7.0.tar.gz
- Upload date:
- Size: 26.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d92906e7b6b42974f5d8693bbe2ac535ac95ad24fa43f63adc093486a1d0ab6
|
|
| MD5 |
d0a646d1c18120bf2b53230e6eca5332
|
|
| BLAKE2b-256 |
052b1c3f338c9337bc61e9cf9601023e83a8a46a83dbb424839d1cb1e148cf9d
|
File details
Details for the file scope-0.7.0-py3-none-any.whl.
File metadata
- Download URL: scope-0.7.0-py3-none-any.whl
- Upload date:
- Size: 29.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91f387bb1d5ebaa75e53d4c68962098cf5af715d59f411af059ffbaed9c1dd75
|
|
| MD5 |
735271d71c814ce989c6575a818fac4d
|
|
| BLAKE2b-256 |
b8fc53e2fcb1cb87cc4af10f1a0540a474de9a1c94ed303c1e67a7fa71c380c5
|