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.3.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.3.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: checkup_python-0.3.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.3.0.tar.gz
Algorithm Hash digest
SHA256 bd694995f1832dc49ff993a2d46fbc055ba3a95d2e386c479e68c8829a8836fc
MD5 9e26b0cf92d3b05e1cb429f966b99e97
BLAKE2b-256 536269ae7a002836de751bd9bca9727d31d2a65bf9c7a77ddfbbe21c0d6b6d47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: checkup_python-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c6bca8011feb2f5dfb545180747a48c451628af8c897d1ce74cbc18f314eb8
MD5 0e8a16fde79e2bd3a0ba2d98b715f3ad
BLAKE2b-256 fbf331e3f8bef31316e77cf47a232836fa27e0f0a40e7c32c050fe87e17f4981

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