Skip to main content

📸 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

Metadata

Release files for panonpy 1.1.0

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

Source distribution (sdist)

Source distribution for panonpy 1.1.0
File Size Uploaded
panonpy-1.1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

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

Total release size: 18.0 kB

Release files / panonpy-1.1.0.tar.gz

Download URL panonpy-1.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
100dfd21f7e8c718c34f6f766e1f7b2b006bc55ddfc6eb21d2ac8aad75b79e83
BLAKE2b-256 checksum
How to use checksums
f8ea8d9f85caba484fd53fa25147c48c57fec90323ef5b026096150de3e933f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.13.2 Darwin/24.3.0

Release files / panonpy-1.1.0-py3-none-any.whl

Download URL panonpy-1.1.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38db7c47fc52bdbc4a69171abdc3e5c3362c6b97a571e47044ec113529980bf7
BLAKE2b-256 checksum
How to use checksums
e6f7bf77351ed9ea4f6cc8d972d6e07927bf49265acb9a858ab97ac1ca7fefaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.13.2 Darwin/24.3.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

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