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.2.1.tar.gz (2.7 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.2.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: checkup_python-0.2.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.2.1.tar.gz
Algorithm Hash digest
SHA256 dbb63dbcc857fcc3d797e0741717b1f42e4f61d4959635ac9e225d1e2afb9277
MD5 943e30200bbf04dae8eaace0256e469d
BLAKE2b-256 dea40209d6c9911a6963b2596101aa6979530d92e2d3ef3f5448186cb8cfab05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: checkup_python-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bedaf24c2495a2c3501f0184c4de9cf85e4426071659bcb744c0bd698249aa2
MD5 5c30294e7adf69b90a13343dd0306d47
BLAKE2b-256 f48f5c6b89604f63b80e0ba2cbc5eb5c6e4de2371c67e5401b2b2ae90c732da6

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