Skip to main content

Utility functions by Peter Cullen Burbery, including date_time_stamp and compare_images

Project description

peter_cullen_burbery_python_functions

A small utility package by Peter Cullen Burbery that provides high-precision date/time formatting functions and image comparison tools.

✨ Features

📅 date_time_functions

  • date_time_stamp()
    Returns a precise timestamp string including:
    • Gregorian calendar date
    • Time with nanosecond precision
    • IANA time zone
    • ISO week format (e.g., 2025-W030-005)
    • Ordinal day of the year

Example:

2025-007-025 015.005.004.990819700 America/New_York 2025-W030-005 2025-206

🖼️ image_functions

  • compare_images(image_path_1, image_path_2)
    Compares two images using:
    • 🔐 SHA-256 hash
    • 🧮 Pixel-wise difference via ImageChops
    • 📏 Structural Similarity Index (SSIM)
    • 📊 ImageMagick absolute error metric (if available)

Outputs:

  • Matching/difference status
  • SSIM score
  • Optional diff image (if images differ)

📦 Installation

pip install peter-cullen-burbery-python-functions

🧪 Example Usage

from peter_cullen_burbery_python_functions.date_time_functions import date_time_stamp
from peter_cullen_burbery_python_functions.image_functions import compare_images

print("🕒 Timestamp:", date_time_stamp())
compare_images("image1.png", "image2.png")

🧑‍💻 Author

Peter Cullen Burbery

This utility library is part of a broader collection of tools for automation, data processing, and system utility scripting.

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

Built Distribution

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

File details

Details for the file peter_cullen_burbery_python_functions-0.3.1.tar.gz.

File metadata

File hashes

Hashes for peter_cullen_burbery_python_functions-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c538dbcd8e0d34d99c2ae8f8d18aae3375c4f0938c3f390748d6822001df5938
MD5 468b67349c3a7f7250dbe2a89fb2063e
BLAKE2b-256 ffb14b6c49be90ba637cf193befed8e226b405b57158e9e715f04a5798d2e95f

See more details on using hashes here.

File details

Details for the file peter_cullen_burbery_python_functions-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for peter_cullen_burbery_python_functions-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85e170715a2250a5ba0d0fa1f933cac81713660604aae98a9acad0bf19c773f7
MD5 9957a256f658984d6dfdeebf2cc49fb0
BLAKE2b-256 2c69cf4f55b222ba99617bbd2815c5ed8cca2a401ba32291ec3f211c0b526437

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