Skip to main content

SheetReview

Give SheetReview a CSV or Excel file and get a list of data-quality issues with the sheet, cell, priority, and suggested fix. Export the findings as an Excel copy with highlighted cells and comments for the person who supplied the data.

Quick start

Requires Python 3.10 or later.

python -m pip install unique-sheetreview
from unique_sheetreview import scan

report = scan("orders.xlsx")
print(report)
report.save_review_copy("orders_review.xlsx")

Try the sample

From the repository root, use the included orders.csv. For this example, each row must have a distinct order ID.

from unique_sheetreview import scan

report = scan("examples/orders.csv", required=["OrderID"], unique=["OrderID"])
print(report)
report.save_review_copy("orders_review.xlsx")

The sample produces 3 High, 1 Moderate, and 1 Low findings.

Priority Cells Finding
High A2, A3 Order ID 101 occurs twice.
High A4 A required order ID is missing.
Moderate B2 04/05/2026 has two possible day/month interpretations.
Low C2 The name has a leading space.

Checks

Priority What the scanner checks
High Missing or duplicate headers, absent rule columns, empty required values, repeated values in declared unique columns, stored Excel error cells
Moderate Ambiguous slash dates, numeric text in Excel amount, price, cost, quantity, total, revenue, or balance columns
Low Blank rows and surrounding whitespace in text values

Use report.findings to integrate with an upload form. Each finding has severity, sheet, cell, code, and message. Use scan(path, sheet="Orders") to restrict an Excel scan to one worksheet. By default the scanner runs on all worksheets, applying the same rules to each. Header rule names ignore case and surrounding spaces. Unique checks compare typed values exactly and skip blanks. Add a required rule when blanks should also be reported.

Input and export behavior

  • Supports comma-delimited UTF-8 CSV (including BOM) and ordinary .xlsx workbooks with headers in row one. Files are processed locally in memory.
  • CSV identifiers keep their leading zeros. CSV values beginning with an equals sign remain literal text in the review workbook.
  • The review copy uses a new .xlsx path and retains cell values. Review copies of complex workbooks are subject to openpyxl's format support. Formulas are preserved and are not evaluated.
  • Review labels are based on the checks above. Business-specific rules, additional layouts, and large streaming inputs are outside this release.

Development

python -m pip install -e .
python -m unittest discover -s tests -v

Released under the MIT license.

Metadata

Release files for unique-sheetreview 0.1.0

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

Source distribution (sdist)

Source distribution for unique-sheetreview 0.1.0
File Size Uploaded Provenance Actions
unique_sheetreview-0.1.0.tar.gz 6.5 kB With provenance Details for unique_sheetreview-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unique-sheetreview 0.1.0
File Interpreter ABI Platform Actions
unique_sheetreview-0.1.0-py3-none-any.whl Python 3 none any Details for unique_sheetreview-0.1.0-py3-none-any.whl

Total release size: 12.8 kB

Release files / unique_sheetreview-0.1.0.tar.gz

Download URL unique_sheetreview-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7e2dab70e1b7261bb41134015af9cabfd3995142529b1211c528050ec1a3236b
BLAKE2b-256 checksum
How to use checksums
d97844b13031c1cc1db7c482cad0dbfe8fb064400aca81ab0a7d7518f4ac20e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / unique_sheetreview-0.1.0-py3-none-any.whl

Download URL unique_sheetreview-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd2707d0cdaa0b4a02e0c51dd87a1440c5a27fb78e15e37c5c62ab29f92397d2
BLAKE2b-256 checksum
How to use checksums
ec3f541bdb58ee83d9d88c3eaa4d427c8da27749a908ecb2afdb0174f9c88916
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for unique-sheetreview 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unique_sheetreview-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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