A visual regression library
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
regresser-0.0.2.tar.gz
(2.9 kB
view details)
File details
Details for the file regresser-0.0.2.tar.gz
.
File metadata
- Download URL: regresser-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9480caf41013462c80ff10d575b59cdb2d7cacd73ad460d022d8ea4d0318af0 |
|
MD5 | 4e8b72edfa62f101243f2a71aec13e23 |
|
BLAKE2b-256 | bd06c4b5ce829cc90cd8daec1ad712fcc95ebe543f71d07ffd45e83aee8e680f |