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)

Development

cd scope_viewer
npm run dev --basedir ... --port 8000

Metadata

Release files for scope 0.8.0

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.8.0
File Size Uploaded Provenance Actions
scope-0.8.0.tar.gz 24.5 MB Without provenance Details for scope-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scope 0.8.0
File Interpreter ABI Platform Actions
scope-0.8.0-py3-none-any.whl Python 3 none any Details for scope-0.8.0-py3-none-any.whl

Total release size: 50.8 MB

Release files / scope-0.8.0.tar.gz

Download URL scope-0.8.0.tar.gz
Size 24.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f46635b8f8400eb6aa94bde1522ab656d0e3c3f746929950f1663ff5dae3dce3
BLAKE2b-256 checksum
How to use checksums
636879984b5f2649c040e2ed9fe0a0ce0284a6f737843e65a0d281bf863d05b6
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.8.0-py3-none-any.whl

Download URL scope-0.8.0-py3-none-any.whl
Size 26.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b0be98f1abb46ea2ff643ab44a4b83b7d089f180ac4a0ed23e05a2199de1da2a
BLAKE2b-256 checksum
How to use checksums
7d4ec39c75be1778dabe80d3c6ae4ba9d281f25e41da30ce53a406366d64b8d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for scope 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files No provenance

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