Skip to main content

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.10.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 sdb-reader 0.10.0
File Size Uploaded Provenance Actions
sdb_reader-0.10.0.tar.gz 215.1 kB With provenance Details for sdb_reader-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sdb-reader 0.10.0
File Interpreter ABI Platform Actions
sdb_reader-0.10.0-py3-none-any.whl Python 3 none any Details for sdb_reader-0.10.0-py3-none-any.whl

Total release size: 437.7 kB

Release files / sdb_reader-0.10.0.tar.gz

Download URL sdb_reader-0.10.0.tar.gz
Size 215.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bf352680beaee271442d486c7efeffe2f8c7a34f6b946e8a571648bc9aed71f8
BLAKE2b-256 checksum
How to use checksums
c0cf02d7a241be778b50df9ca0b6a82a61ed27f8a73e34e2c44ec0c766ce0045
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 20, 2026.

Transparency log

Release files / sdb_reader-0.10.0-py3-none-any.whl

Download URL sdb_reader-0.10.0-py3-none-any.whl
Size 222.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
887066b8e022f7f2b350b73a1bb21d55058b3b634cc17284657c6253d16ca98f
BLAKE2b-256 checksum
How to use checksums
ee0246da89151e2e27e9038e68428c8fbd7a53cffcef94fcf1dd8c44458dc88d
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 20, 2026.

Transparency log

Security for sdb-reader 0.10.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 sdb_reader-0.10.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 20, 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.

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