skillfed

clusterscope

Clusterscope is a CLI and python library to extract information from HPC Clusters and Jobs.

clusterscope v0.0.32 165.0K downloads/30d#10,532 on PyPI24
Permissive license MIT License Copyright (c) 2020 Facebook Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in… (full text in the JSON record) Active released

What it is and what it does

Clusterscope is a tool for HPC administrators and researchers who need to programmatically or interactively query cluster state. It provides both a Python library and a command-line interface to extract information about nodes, GPUs, CPUs, memory, and job configurations from Slurm-managed clusters. The library can be imported for scripted cluster introspection, while the CLI (`cscope`) offers immediate access to common queries like node resource counts, GPU availability, and AWS environment checks.

The package is lightweight, depending only on click for CLI scaffolding, and targets modern Python (>=3.10). It is actively maintained by Facebook Research and suitable for automation, monitoring integration, and cluster capacity planning workflows where you need to query live cluster state without writing raw Slurm commands.

Use it for:

  • Query available GPU types and counts across cluster nodes before submitting distributed training jobs
  • Programmatically check CPU and memory per node to generate job submission requirements dynamically
  • Verify AWS environment and NCCL settings when running on AWS HPC clusters
  • Integrate cluster metadata into monitoring dashboards or resource allocation scripts
  • Automate cluster health checks and node inventory reporting in CI/CD or deployment pipelines

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Clusterscope extracts and queries information from HPC clusters and jobs via a CLI tool and Python library, with built-in support for Slurm cluster metadata and AWS/NCCL diagnostics.

Yes, if you manage or work with Slurm-based HPC clusters and need programmatic access to cluster metadata. The low install friction, active maintenance, permissive license, and clean API make it a practical choice for cluster automation and job submission workflows. Not applicable if your cluster uses a different scheduler or if you only need occasional manual cluster queries.

Install

clusterscope on PyPI

pip

pip install clusterscope

uv

uv add clusterscope

poetry

poetry add clusterscope

Installing clusterscope

Before you install

Low install friction with only two lightweight runtime dependencies (click and click-option-group). The package is actively maintained with recent commits and a stable release cadence since mid-2025.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

pip install clusterscope

import clusterscope
print(clusterscope.cluster())

# Or use the CLI:
# cscope info
# cscope gpus
# cscope cpus

Requires Python >=3.10. Designed for HPC environments with Slurm; functionality depends on cluster availability and proper Slurm configuration.

Verify before relying

  • Whether the package works on non-Slurm HPC schedulers (e.g., PBS, LSF) or is Slurm-specific
  • Performance characteristics when querying large clusters with many nodes or jobs
  • Exact AWS/NCCL diagnostic capabilities and whether they require AWS credentials or specific instance types

Package facts

License MIT License Copyright (c) 2020 Facebook Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — click, click-option-group
Maintenance actively maintained — 210 days since the last release
Last repo commit
First released
Downloads 165,008/month — #10,532 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: clusterscope-0.0.32-py3-none-any.whl

Tags

HPC cluster information extractionSlurm cluster query toolGPU and CPU node informationcluster job metadata CLIHPC diagnostics and monitoringAWS cluster configuration checknode resource inventory tool
hpc-clustersslurmcluster-management

More Distributed Computing packages