GHS hazard descriptions and pictograms.
Project description
GHS Hazard pictograms
Based on GHS_hazard_pictograms Wikipedia article
Install
pip install ghs_hazard_pictogram
Usage
>>>from ghs_hazard_pictogram import Hazard
>>>Hazard.all() # List all hazards
>>>Hazard(code='class8') # Return hazard with code 'class8'
>>>Hazard.search('division') # Return hazard with attribute containing 'division' case insesitive
>>>Hazard(code='class8').get_pictogram() # returns full path to the svg file
Licence
This code is licenced under MIT, and the content is licenced under Creative Commons.
Bug or request
Please create an issue on Github
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
Built Distribution
File details
Details for the file ghs_hazard_pictogram-0.1.0.tar.gz
.
File metadata
- Download URL: ghs_hazard_pictogram-0.1.0.tar.gz
- Upload date:
- Size: 74.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70ea7150b48556d1455c7cc9ba7b7fdc6ce75af60bf548270babdef6e17a7b19 |
|
MD5 | bf8eb03288e18134e6f188a901621596 |
|
BLAKE2b-256 | e59609deff92db8433caf15f3e936fdedd16daec8e4c11e47e312aa6d3636279 |
File details
Details for the file ghs_hazard_pictogram-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ghs_hazard_pictogram-0.1.0-py3-none-any.whl
- Upload date:
- Size: 104.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3bd07b0d8f9e912bf3907a6ede4d793f860a71ac1f0147ea5192fe7827c936 |
|
MD5 | b763ac4effe817614abd322768593f4b |
|
BLAKE2b-256 | 4e4c744bb23d0ddc39a89040c16084e27eee670a6d447850c06f7d56d79f9469 |