Skip to main content

repometrics

PyPI Python CI License

A deterministic CLI for measuring Python repository health.

pip install repository-metrics-cli
repometrics check

Quickstart

repometrics check --path /path/to/repo
repometrics check --json

scan is kept as a backward-compatible alias for check.

CLI Reference

Primary command:

repometrics check [--path DIR] [--days N] [--json] [--verbose] [--min-score N] [--confirm-test-matches] [--no-color]

Important flags:

  • --json: machine-readable output
  • --verbose: full category metrics and warnings/errors
  • --min-score: health threshold (default 70)
  • --no-color: disable ANSI colors in terminal output
  • --confirm-test-matches: interactive confirmation for ambiguous non-test_* matches

Text modes:

  • default: compact summary + small score table
  • --verbose: full stats view
  • --json: programmatic full detail

Exit Codes

  • 0: healthy (final_score >= min_score)
  • 1: unhealthy (final_score < min_score)
  • 2: runtime/validation error

Agent-Friendly Usage

  • Stable JSON payload (schema_version, category metrics, scoring, warnings/errors)
  • Additive health fields: healthy, min_score, exit_code
  • Exit codes enable CI/agent decisions without parsing human-formatted text

Minimal JSON example:

repometrics check --json --min-score 75

Development

python3 -m pytest -q

License

MIT

Metadata

Release files for repository-metrics-cli 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for repository-metrics-cli 0.2.3
File Size Uploaded
repository_metrics_cli-0.2.3.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for repository-metrics-cli 0.2.3
File Interpreter ABI Platform
repository_metrics_cli-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 36.1 kB

Release files / repository_metrics_cli-0.2.3.tar.gz

Download URL repository_metrics_cli-0.2.3.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bb73760914ce6a086eb7fc81a98b7047e43b1c4dd22a53084e8363632ad5876c
BLAKE2b-256 checksum
How to use checksums
d5f6375424c867d30a25f6074d86e0c1bc3d0384b0f8f6576abd2822fd79d1fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / repository_metrics_cli-0.2.3-py3-none-any.whl

Download URL repository_metrics_cli-0.2.3-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4803787c6f1e231c22c58d76763d8393ffe100089f65b038feb9490c8eb2e2a
BLAKE2b-256 checksum
How to use checksums
1b6ccb9b6964f6ed3c8c304547467a6e69620c6aa898c39b43f19a097d8ab28c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

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