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

Built distribution (wheel)

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

Total release size: 50.8 MB

Release files / scope-0.8.1.tar.gz

Download URL scope-0.8.1.tar.gz
Size 24.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2452aaf1a7abf26ab4cb7e156866369ef6f3b3aa163b6adc940dc5814b40c24b
BLAKE2b-256 checksum
How to use checksums
de8b66d2706a756c41ec2e57bede15ede27857f4025493bc429b9d7e4da1e275
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.1-py3-none-any.whl

Download URL scope-0.8.1-py3-none-any.whl
Size 26.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2c2c40405ec9f5187dc82313a1cf281d56e1ebec43762a68a69406a9b23c0622
BLAKE2b-256 checksum
How to use checksums
696cc1c00f65d88dfa205ed2c671a39edbd8c98f872fc6323e8e39eb6ba8725c
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.1

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.1 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