Skip to main content

Python metrics for checkup

Project description

checkup-python

Python project metrics plugin for checkup.

Installation

pip install checkup-python

Requirements

Usage

from checkup import CheckHub
from checkup_python.metrics import PythonVersionMetric

results = (
    CheckHub()
    .with_metrics([PythonVersionMetric])
    .measure()
)

Available Metrics

PythonVersionMetric

Detects the Python version configured for a project.

Detection order:

  1. .python-version file
  2. pyproject.toml (requires-python field)
  3. Falls back to current runtime version

The metric supports comparison operators for version checking.

PythonVersionCheckMetric

Checks if the project's Python version falls within specified minimum and maximum boundaries. Configure by subclassing:

from checkup_python.metrics.version_check import PythonVersionCheckMetric

class MyVersionCheck(PythonVersionCheckMetric):
    min_version = "3.11"
    max_version = "3.13"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checkup_python-0.4.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checkup_python-0.4.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file checkup_python-0.4.0.tar.gz.

File metadata

  • Download URL: checkup_python-0.4.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for checkup_python-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5117787cddbbb9bf9e5292d6a81f5d2d19cc89c737cbc6ff7c4a19debaf23d68
MD5 b01f6731c726d1e49d0e3d8b7f2cd2ac
BLAKE2b-256 d5d89a3a375275b30680c83e64d85cf759fbe13eb38504d203a5032f6c2a3a38

See more details on using hashes here.

File details

Details for the file checkup_python-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: checkup_python-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for checkup_python-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c84c950b6bad13ca760f52418d2ebd1e8548c3433b7a9f27295b7c021fbd035
MD5 032586fc0b6c4c95c5c2d93a82faf7df
BLAKE2b-256 8f8078be3b3f7de026456c346c2b9baef86f58ade08d243db793e26050ca1e10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page