Last updated:
0 purchases
ghshazardpictogram 0.1.0
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.