An MSDS parser.
Project description
Installation
Tungsten is available on PyPi via pip. To install, run the following command:
pip install tungsten-sds
Usage Example
from pathlib import Path
from tungsten import SigmaAldrichSdsParser
sds_parser = SigmaAldrichSdsParser()
sds_path = Path("sigma_aldrich_w4502.pdf")
# Convert PDF file to parsed data
with open(sds_path, "rb") as f:
sds = sds_parser.parse_to_ghs_sds(f, sds_name=sds_path.stem)
# Serialize parsed data to JSON and dump to a file
with open(sds_path.stem + ".json", "w") as f:
sds.dump(f)
License
This work is licensed under MIT. Media assets in the assets
directory are licensed under a
Creative Commons Attribution-NoDerivatives 4.0 International Public License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tungsten_sds-0.3.0.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for tungsten_sds-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fe66bd25ec4a1444a30adc09891eb2afb232126af67b9093f326d3bb31ded1 |
|
MD5 | 9c766e10cbf5cb251b8d35f1890fa643 |
|
BLAKE2b-256 | 346e283170df137faad372460c7a6ba66651f4398470334c4c39abce655b5095 |