X-ray

Latest version: v0.3.4

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.3.4

- Upgrade dependencies.

0.3.3

- Upgrade to PyMuPDF 1.19.2, and use its new `is_unicolor` attribute to
identify redaction boxes.
- If all redactions for a document are dates, consider them good redactions.

0.3.2

Makes xray installable. You can now do this:


xray path/to/some/file.pdf


And it'll return JSON like usual.

0.3.1

Adds support for URLs. This now does what you'd expect:


% python -m xray https://example.com/some-path.pdf

0.3.0

Reduces false positives by inspecting the pixels of every possible bad
redaction. This comes at a small performance cost, but will eliminate many of
the false positives we've been dealing with. This approach was selected because
understanding the ins and outs of PDFs and trying to *guess* the color of their
x-y locations is impossible in Python.

Adds support for bad redactions under rectangles that are not pure black.
Previously, we ignored all non-black rectangles, which meant that redactions
that weren't black wouldn't be caught. With our new pixel-inspection approach,
we can include these without them causing issues.

0.2.4

Upgrades to PyMuPDF 1.19.1, which simplifies our handling of colorspaces. We
no longer need to check for various colorspaces (simplifying our code), and we
are now able to compare rectangle color to text color more accurately, since
they are now normalized by PyMuPDF.

Previously we'd have a false positive if a rectangle and text were the same
color but in different colorspaces. For example, 0.0 in grayscale is the same
as (0.0, 0.0, 0.0) in RGB, but we couldn't compare those easily before.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.