Git Product home page Git Product logo

friff's Introduction

front-diff-checker

(name subject to changes.)

Using Selenium and its BrowserDrivers, it take's screenshots and compare them to get differences between two given environments.

Require python3.10

Usage

usage: script.py [-h] [-s URL] [-t URL] [-k] [-p] [-o] [-w WARMUP_TIME] [-v] [-b BROWSER]

Take screenshot and compare them to get differences between two given environments

options:
  -h, --help            show this help message and exit
  -s URL, --source URL  The source website URL
  -t URL, --target URL  The target website URL
  -k, --keep-files      Keep files after comparison
  -p, --purge-files     Remove files before take screenshots
  -o, --open-result     Show result picture once it generated
  -w WARMUP_TIME, --warmup-time WARMUP_TIME
                        Wait before starting Selenium once it's driver is ready (seconds)
  -v, --verbose         Add some debug texts
  -b BROWSER, --browser BROWSER
                        Browser used by Selenium to run screenshot

Example

$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python script.py -s https://fr.wikipedia.org/wiki/Tatenectes -t https://fr.wikipedia.org/wiki/Genre_\(biologie\) -o -v -k

Testing API endpoints with Swagger

$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r dev-requirements.txt
$ python -m uvicorn api:app --reload

Then open Swagger endpoint to test API

โš ๏ธ Current UVICORN settings are not designed for production needs.

Use with caution and check this documentation page first.

Build

$ python -m pip install pip --upgrade
$ pip install -r build-requirements.txt
$ python -m build

This will generate new package into ./dist/ folder. You'll need to edit ./pyproject.toml file in order to fit your needs.

friff's People

Contributors

tarto-dev avatar

Watchers

 avatar

friff's Issues

Add Cache

We have no caching options so far. So any multiple calls will trigger job and could be greatly improved by adding caching layers.

Pick a new name

The name front-diff-checker is, sure efficient, but not nice.

Add project related methods

We need PROJECT methods, such as "project-create", "project-remove", "project-reload", "project-list" to create nested folders

Improve README.md

Now the README contains software documentation, running example and building methods.

We could add some backlinks to Python and modules documentations and some screenshots

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.