Skip to main content

A simple image comparer

Project description

📸 PanonPy

PanonPy is a simple, modular Python library for visual regression testing by comparing images differences and generating HTML report

✨ Features

  • Compare two images (actual vs baseline)
  • Auto-generate HTML report with images
  • Fail the test if images differ (optional)
  • Pytest integration ready
  • CLI support (coming soon)

📦 Installation

pip install panonpy

🚀 How to Use

Basic Usage

from panonpy.panonpy import PanonPy

# Create a PanonPy instance
tester = PanonPy(output_dir='results', fail=True)

# Compare two images
tester.compare(
    actual_image_path='path/to/home_page_screenshot.png',
    baseline_image_path='path/to/baseline_home_page.png',
    test_name='home_page_test',
    threshold=0.01  # Allow 1% difference
)

Install Development

Make sure you have Poetry installed. Clone the repository:

git clone https://github.com/FachrulCH/panonPy.git
cd panonpy
poetry install --with test

Result

  • Copies actual, baseline, and diff images into output_dir (default: 'results')
  • Generates a VisualTestsResult.html report with:
    • Green rows for identical images
    • Red rows for different images
    • Yellow rows for newly created baselines
    • Clicking an image in the report opens a full-size popup preview

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

panonpy-1.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

panonpy-1.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file panonpy-1.1.0.tar.gz.

File metadata

  • Download URL: panonpy-1.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for panonpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 100dfd21f7e8c718c34f6f766e1f7b2b006bc55ddfc6eb21d2ac8aad75b79e83
MD5 be83066687204db1ccfb494332415b2f
BLAKE2b-256 f8ea8d9f85caba484fd53fa25147c48c57fec90323ef5b026096150de3e933f6

See more details on using hashes here.

File details

Details for the file panonpy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: panonpy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for panonpy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38db7c47fc52bdbc4a69171abdc3e5c3362c6b97a571e47044ec113529980bf7
MD5 772281251c43e8fc85750b388af2f7ae
BLAKE2b-256 e6f7bf77351ed9ea4f6cc8d972d6e07927bf49265acb9a858ab97ac1ca7fefaf

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