Skip to main content

Regresser - Visual Regression Library

What is it?

A visual regression tool for comparing web apps and websites to visually find differences between versions.

Usage:

Webdriver

First we need to create a baseline, your main version. Any other version will be compared to this one.

from regresser import webdriver

webdriver.Driver(url='https://www.nytimes.com/', background=True, timeout=60)

Now we're able to create another version. Eg.:

from regresser import webdriver

webdriver.Driver(url='https://www.nytimes.com/', background=True, timeout=60)
webdriver.Driver(url='https://www.nytimes.com/', version='stg', background=False, timeout=60)```

Options:

version='staging' #version name 
driver='firefox' #defaults to firefox. Use 'chrome' to enable chromedriver
timeout=10 #timeout loading a page
background=True or False #Loads the website in background (headless)
width=None #force a width, otherwise will be automatic.
height=None #force a height, otherwise will be automatic.

Analyzer

from regresser import analyzer

analyzer.Compare(version='stg')

Results

There are currently two outputs: alpha_diff.png and highlights.png. The alpha_diff will hide everything except differences, and highlights will show differences in red color after comparing versions.

Metadata

Release files for regresser 0.0.2

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

Source distribution (sdist)

Source distribution for regresser 0.0.2
File Size Uploaded
regresser-0.0.2.tar.gz 2.9 kB Details

Release files / regresser-0.0.2.tar.gz

Download URL regresser-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a9480caf41013462c80ff10d575b59cdb2d7cacd73ad460d022d8ea4d0318af0
BLAKE2b-256 checksum
How to use checksums
bd06c4b5ce829cc90cd8daec1ad712fcc95ebe543f71d07ffd45e83aee8e680f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

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