Skip to main content

License: GPL v3 Downloads Made with Python Pre-Release

TolMate

TolMate is a Python utility for checking if a value falls within specified tolerance ranges. It provides feedback via console messages and popup windows to alert users about the status of the value, whether it's within range or outside specifications.


Features

  • Tolerance Checks: Supports up to three (optional) levels of tolerance ranges:

Tolerances


  • Tol 1±: Normal range (no news, good news)

  • Tol 2±: Soft warning
Soft Warning
  • Tol 3±: Hard warning
Critical Warning
  • Outside tolerances: Error
Error
  • Interactive Popups: Display user-friendly messages with color-coded warnings and action buttons.
  • Dynamic Value Rechecking: Modify values directly from the popup for re-evaluation.
  • Behavior Configuration: Enable or disable popups and console messages globally.
  • Simple API: Easy to integrate into your existing Python projects.
  • Customizable Look: Highlight alerts with built-in symbols or emojis.
  • Reusable and Lightweight: Designed to integrate seamlessly into larger projects.

Installation

You can install TolMate using pip.

pip install tolmate

Requirements

  • Python 3.x
  • tkinter (comes pre-installed with Python)

Usage

Basic Example

from tolmate import configure_behavior, tolmate

# Set global behavior for popups and messages (by default all True)
configure_behavior(show_popup=True, show_message=False)

# Main program example
def celsius_to_kelvin(celsius):
    """Convert Celsius to Kelvin."""
    return celsius + 273.15

# Main loop for initial value input
try:
    # Configure global behavior (example: enable both message and popup)
    value = float(input("\nEnter the temperature in degrees Celsius: "))

    if tolmate(value, 20, 30, 10, 50, -10, 80):  # Example ranges
        kelvin = celsius_to_kelvin(value)
        print(f"\nThe temperature in Kelvin is: {kelvin:.2f}")
    else:
        print("\nThe value is outside specifications.")

except ValueError:
    print("Please enter a valid number!")

Metadata

Release files for TolMate 1.0.6

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

Source distribution (sdist)

Source distribution for TolMate 1.0.6
File Size Uploaded Provenance Actions
tolmate-1.0.6.tar.gz 5.9 kB Without provenance Details for tolmate-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TolMate 1.0.6
File Interpreter ABI Platform Actions
TolMate-1.0.6-py3-none-any.whl Python 3 none any Details for TolMate-1.0.6-py3-none-any.whl

Total release size: 13.0 kB

Release files / tolmate-1.0.6.tar.gz

Download URL tolmate-1.0.6.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
09ed6748613b95de1f1e5804bc8c8d00e8afac5f31ab69b1ef7552ff0f566d66
BLAKE2b-256 checksum
How to use checksums
a41a7f04bed288d08569de94e0fe0196badd4038c7613609234444c03ba8c700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / TolMate-1.0.6-py3-none-any.whl

Download URL TolMate-1.0.6-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2136f7b265821abc6e9a8808865f50b897af8693846de722ead2154088a0ddce
BLAKE2b-256 checksum
How to use checksums
3a23e4248627838997f5f63c022f017fb3e13b3fdf83440367d15993c698fce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for TolMate 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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