🔬 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.1.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.1-py3-none-any.whl
(29.5 MB
view details)
File details
Details for the file scope-0.7.1.tar.gz.
File metadata
- Download URL: scope-0.7.1.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 |
5618518b4f8fa741dd391f6238d14c9d88674bd605ff5d3c5396c8a32a0b3765
|
|
| MD5 |
2dab5dca809f35f77e38385977777c77
|
|
| BLAKE2b-256 |
cecbc939c94fd01ebcbe2470646bbcea49ee2ce0c3853976eb96afb4522c871a
|
File details
Details for the file scope-0.7.1-py3-none-any.whl.
File metadata
- Download URL: scope-0.7.1-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 |
045d1d3d30e8f9e1497960d76214d177af8dcc67d3f40a35f076e8903caddebc
|
|
| MD5 |
825dcbf04fa365575422f86f1bdd0582
|
|
| BLAKE2b-256 |
4a813efe315631200e1f9c51332d37b56964db474c3c0c47dff983e278c9ea4c
|