SheetReview
Run the notebook
Run the notebook to open the file picker. Select a CSV or XLSX, click Review file, then download the marked workbook. A separate cell includes a runnable sample. The Jupyter badge launches Binder, a public hosted service. For local files, download SheetReview.ipynb and open it in local JupyterLab. The VS Code badge opens the notebook editor. Select a Python kernel or open the notebook in desktop VS Code to execute it.
Install the notebook extra with python -m pip install "unique-sheetreview[notebook]". In a Python notebook, run:
from unique_sheetreview.notebook import launch_review
panel = launch_review()
The interface is provided by Unique Interface. The original cell-based example is also available.
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unique_sheetreview-0.1.1.tar.gz | 7.6 kB | With provenance | Details for unique_sheetreview-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unique_sheetreview-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for unique_sheetreview-0.1.1-py3-none-any.whl |
Total release size: 14.9 kB
Release files / unique_sheetreview-0.1.1.tar.gz
| Download URL | unique_sheetreview-0.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4bd98e145c6fb39ccf8ac6fa7761395a0ccfccb8c8edd468d80fa00f9f39788
|
|
BLAKE2b-256 checksum How to use checksums |
46a5afc5ff35831f57d35ee42ac1f16bf7e15b4541a9c8a71e43274b9f7c29d8
|
| 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 27, 2026.
Transparency logRelease files / unique_sheetreview-0.1.1-py3-none-any.whl
| Download URL | unique_sheetreview-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88401eb8e923c745f238b09b9fe6f26049f6c4dc6788c53e43ae9532ed190868
|
|
BLAKE2b-256 checksum How to use checksums |
0dfae520af2f895e3851ded69f9cf90f7bee290b0055cda6a917bf15354e9402
|
| 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 27, 2026.
Transparency logSecurity for unique-sheetreview 0.1.1
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.
Attestation for unique_sheetreview-0.1.1.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 27, 2026.
Transparency logA 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.