iso-standard-check
Find the ISO and IEC standards your repository cites, and fail CI on the ones ISO's own register marks withdrawn or superseded — each with the register row it was read from.
npx iso-standard-check . # scan a repository
npx iso-standard-check docs/ supplier-spec.md # or named paths
npx iso-standard-check --standard "ISO 9001:2008"
FAIL ISO 9001:2015 is withdrawn or superseded — docs/quality-plan.md:12, 48
Quality management systems — Requirements
the register names ISO 9001:2026 as its replacement
register row: 62085,IS,,ISO 9001:2015,Quality management systems — Requirements,…,2015-09-22,5,…
https://referencesource.org/iso-standard-supersessions/iso-9001-2015/
? ISO 14001 names no edition year — docs/quality-plan.md:19
not judged: the register marks 1996, 2004, 2015 withdrawn. Cite the edition
and this becomes a check.
Exit 1 if a cited edition is withdrawn. Exit 0 otherwise.
Why this is hard to do by hand
ISO 9001:2015 is no longer current. ISO published ISO 9001:2026 on 2026-09-16, so every quality plan, supplier spec and audit checklist in the world that cites the 2015 edition now cites a superseded one. That is the ordinary case this checker exists for, and nothing in a repository tells you it happened.
The edition year is the whole difficulty. Every one of the 24,640
identifiers in ISO's register is of the form ISO 9001:2008. ISO 9001:2008 is
withdrawn; its replacement is not. So a document that writes just "ISO 9001"
cannot be judged withdrawn or current by anybody, this program included. Those
citations are printed as unjudged, with the editions of that designation the
register does mark withdrawn, and they never fail your build. Call it with
--strict if you would rather be made to write the edition down.
What the index covers, and what a silence means
The shipped data holds deliverables ISO's register marks withdrawn or superseded, and nothing else.
So a hit is a measurement and a miss is not. A designation this program does not report may be current, may be withdrawn in a later edition of the register than the one we read, or may not exist. It is reported as not in this extract, and it is never printed as "current". If you need "is this one current?", that is a different question and this is not the tool that answers it.
Two things ISO's register does not give, so neither does this package:
- The date a standard was withdrawn. The only date in the file is the
deliverable's own publication date. It is printed as
publishedand never as a withdrawal date. - Any guarantee the named replacement exists as a document. 2,507 of the 24,640 records (10.2%) name at least one replacement the register gives no publication date; on 416 (1.7%) every named replacement is undated — a registered revision project you may not be able to obtain. Both cases say so in the output rather than handing you a designation that cannot be bought.
Where the numbers come from
Every verdict is read from one file: ISO's own open-data deliverables register,
https://isopublicstorageprod.blob.core.windows.net/opendata/_latest/iso_deliverables_metadata/csv/iso_deliverables_metadata.csv
published by ISO under the Open Data Commons Attribution License v1.0, which permits reuse with attribution. Each of the 24,640 records carries the CSV row it was read from, verbatim, and is published on its own page with that row visible:
https://referencesource.org/out/pkg/iso-standard-check/
Nothing in this package computes, normalises or infers a status. It reads what the register states, and where the register states nothing it says so in words. The records are re-checked against the live file on a schedule; the index here carries the date it was built.
As a pre-commit hook
The Python twin on PyPI ships a hook:
repos:
- repo: https://github.com/referencesource/iso-standard-check
rev: v0.1.0
hooks:
- id: iso-standard-check
Or pipx run iso-standard-check .
In a GitHub Actions workflow
- name: ISO citations
run: npx --yes iso-standard-check docs/ specs/
Options
<paths> |
files or directories; defaults to . |
--standard "<id>" |
ask about one designation and exit |
--json |
machine-readable, including every line number |
--quiet |
withdrawn citations only, no unjudged ones |
--strict |
also exit 1 when a citation names no edition year |
Caches, virtualenvs, node_modules and build output are not walked: a citation
inside something you installed is a fact about somebody else's repository.
API
const iso = require('iso-standard-check');
iso.lookup('ISO 13485:2003'); // one designation
iso.scanText(readmeText); // findings with line numbers
iso.scanPaths(['docs']); // grouped by verdict
CC0-1.0. Built by an automated pipeline at referencesource.org; the facts are ISO's and are attributed to ISO on every line.
Metadata
Release files for iso-standard-check 0.1.0
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 |
|---|---|---|---|---|
| iso_standard_check-0.1.0.tar.gz | 2.3 MB | Without provenance | Details for iso_standard_check-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iso_standard_check-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for iso_standard_check-0.1.0-py3-none-any.whl |
Total release size: 4.7 MB
Release files / iso_standard_check-0.1.0.tar.gz
| Download URL | iso_standard_check-0.1.0.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8cadfd9b145f48976878e9413d633996fc49abce4f4fa31b5d76f6916ecbfc2
|
|
BLAKE2b-256 checksum How to use checksums |
169210222b0bd805f2c1bc2fcd5f3b16f4f8aeb08c87f38844aa49b1ac9732fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / iso_standard_check-0.1.0-py3-none-any.whl
| Download URL | iso_standard_check-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f807349492307620951bb284c1b32ed0bdbf6fc0e8e75a9245f99f5ef9af2d9
|
|
BLAKE2b-256 checksum How to use checksums |
fe3a03bc10be1fd15e93cd63d2182e96ced4a843f42cafedb31e922d78856e97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for iso-standard-check 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.