🔬 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)
Release files for scope 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scope-0.7.1.tar.gz | 26.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scope-0.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.8 MB
Release files / scope-0.7.1.tar.gz
| Download URL | scope-0.7.1.tar.gz |
|---|---|
| Size | 26.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5618518b4f8fa741dd391f6238d14c9d88674bd605ff5d3c5396c8a32a0b3765
|
|
BLAKE2b-256 checksum How to use checksums |
cecbc939c94fd01ebcbe2470646bbcea49ee2ce0c3853976eb96afb4522c871a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / scope-0.7.1-py3-none-any.whl
| Download URL | scope-0.7.1-py3-none-any.whl |
|---|---|
| Size | 29.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
045d1d3d30e8f9e1497960d76214d177af8dcc67d3f40a35f076e8903caddebc
|
|
BLAKE2b-256 checksum How to use checksums |
4a813efe315631200e1f9c51332d37b56964db474c3c0c47dff983e278c9ea4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|