📸 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| panonpy-1.1.0.tar.gz | 8.3 kB | Without provenance | Details for panonpy-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| panonpy-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for panonpy-1.1.0-py3-none-any.whl |
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
|
Security for panonpy 1.1.0
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.