sdb-reader
Reads German safety data sheets (Sicherheitsdatenblätter) under REACH and CLP from PDF files, without a language model: the same file always gives the same result, and every rule the reader follows is written down.
Deutsch: README.de.md
sdb-reader read sheet.pdf
For each PDF it says:
- what the file is: a German safety data sheet, a safety information, a safety data sheet in another language, or another document;
- the classification that section 2 states;
- the label: signal word, pictograms, and the H, P and EUH statements, with the sheet's wording beside the regulation's;
- dates and version, the countries the sheet is issued for, and the supplier;
- what is wrong with the sheet as a document: revised before 2021, no readable date, a classification and a label that contradict each other, a statement worded differently from the regulation.
The result is JSON. Warnings and findings come as a fixed code with a
sentence, in German or English. To read a sheet yourself, show prints the
same as a report:
sdb-reader show sheet.pdf
Documentation
The documentation is at https://foerdebaumarkt.github.io/sdb-reader/, one edition per released version. The same pages are in the repository under docs/.
| You want to | Read |
|---|---|
| run the command and understand what it prints | Using the command line, in German: Bedienung |
| read sheets from a Python program | Using the library |
| understand how a file becomes a reading | How it works |
| change the reader | Contributing |
| know what a version changed | CHANGELOG.md |
| read the binding rules | specs/, in German |
Install
Needs Python 3.12 or newer. Install it from the Python Package Index:
uv tool install sdb-reader
Scanned sheets are read by text recognition, which needs tesseract with
German language data. Installing has the details.
Limits
- German sheets only. A sheet in another language is recognised as one and not read.
- It reads one file at a time. Which sheets belong to one product is for the program that uses it; the library then chooses the current one among them.
- Whether a product needs a safety data sheet is read from the classification and the label. Section 2.3 (PBT, vPvB, candidate list) is not read.
- An older sheet in another language, without numbered subsections, counts as a document.
- A form in two columns without colons is read as label and value in section 1 only. In the other sections of such a sheet a value may not be found.
Licence
GNU Affero General Public License, version 3 or later (LICENSE).
The PDF library the reader is built on, PyMuPDF (installed as pymupdf-lite), is under the AGPL, so a
program that uses this package takes on its obligations.
Copyright © 2026 Förde-Baumarkt Holger Claussen GmbH & Co. KG (service@foerde-baumarkt.de). NOTICE names the copyright holder and the source of the regulation's wording that the package carries.
Metadata
Release files for sdb-reader 0.11.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 |
|---|---|---|---|---|
| sdb_reader-0.11.0.tar.gz | 220.0 kB | With provenance | Details for sdb_reader-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sdb_reader-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for sdb_reader-0.11.0-py3-none-any.whl |
Total release size: 446.9 kB
Release files / sdb_reader-0.11.0.tar.gz
| Download URL | sdb_reader-0.11.0.tar.gz |
|---|---|
| Size | 220.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d05ad42700b96235e5f4d42cb14cb85b246b52f3d4cec4cf9e690a1c545b399
|
|
BLAKE2b-256 checksum How to use checksums |
85d898f926b88d6813cae15330c083ae8e5fcf23ed37940d63d29691bae24835
|
| 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 21, 2026.
Transparency logRelease files / sdb_reader-0.11.0-py3-none-any.whl
| Download URL | sdb_reader-0.11.0-py3-none-any.whl |
|---|---|
| Size | 226.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
beafa89775a1ea2b543e8166fd334581429932aec465962a581d762d7b1f20d4
|
|
BLAKE2b-256 checksum How to use checksums |
2b6b7d51663e99901f88943afbf627e295760590721f8aee405e8675605ce238
|
| 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 21, 2026.
Transparency logSecurity for sdb-reader 0.11.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.
Attestation for sdb_reader-0.11.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 21, 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.