Skip to main content

🔬 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)

Source distribution for scope 0.7.1
File Size Uploaded
scope-0.7.1.tar.gz 26.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for scope 0.7.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.3

1 release file

0.6.2

1 release file

0.6.0

1 release file

0.5.5

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.12

1 release file

0.4.11

1 release file

0.4.10

1 release file

0.4.9

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page