Metadata-Version: 2.4
Name: omnisnap
Version: 0.1.0rc7
Summary: Cross-engine layout differences from one command; see exactly which elements render differently in every browser you have installed
License-Expression: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/GerMP21/Omnisnap
Project-URL: Repository, https://github.com/GerMP21/Omnisnap
Project-URL: Issues, https://github.com/GerMP21/Omnisnap/issues
Project-URL: Documentation, https://github.com/GerMP21/Omnisnap#readme
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: license-file

# omnisnap (PyPI)

Thin wrapper around the Omnisnap binary: writes a job, streams progress,
returns the summary. No runtime dependencies, no download at install time.

## API

```python
from omnisnap import run, browsers

summary = run(pages=["http://localhost:3000/"], engines=["chrome", "firefox"],
              out="./omnisnap-out", on_progress=lambda e: print(e["type"]))
print([(r["engine"]["engine"], r["stats"]["report"]) for r in summary["results"]])
```

The binary comes from the wheel for this platform, then `OMNISNAP_BINARY`, then
`PATH`. Errors are `OmnisnapError` with `code` and `stderr`; findings never
raise.

## Command line

The package also installs the `omnisnap` command, using the same binary.
pip skips release candidates unless asked, hence `--pre`:

```sh
pip install --pre omnisnap                 # into the active environment
omnisnap version
```

```sh
omnisnap browsers                          # the engines found, with versions and paths
omnisnap http://localhost:3000 http://localhost:3000/pricing
omnisnap http://localhost:3000 --engines chrome,firefox --runs 1
omnisnap run job.json --json               # a job file; NDJSON progress on stdout
omnisnap install firefox                   # add Gecko when no Firefox is installed
omnisnap report omnisnap-out               # re-render a bundle's report.html
```

Each run writes a bundle to `./omnisnap-out` (`--out` to change it), with a
self-contained `report.html` to open in a browser. Findings never fail a run:
the exit code is `0` with or without differences, `1` for a usage error, `2`
when no Blink baseline (Chrome, Edge, Chromium, Brave) is available, `3` when
every capture failed and `4` for an internal error. Every command and flag:
[the main README](https://github.com/GerMP21/Omnisnap#commands).
