Skip to main content

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

Metadata

Release files for ghs-hazard-pictogram 0.1.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 ghs-hazard-pictogram 0.1.0
File Size Uploaded
ghs_hazard_pictogram-0.1.0.tar.gz 74.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ghs-hazard-pictogram 0.1.0
File Interpreter ABI Platform
ghs_hazard_pictogram-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 179.0 kB

Release files / ghs_hazard_pictogram-0.1.0.tar.gz

Download URL ghs_hazard_pictogram-0.1.0.tar.gz
Size 74.1 kB
Tags Source
SHA-256 checksum
How to use checksums
70ea7150b48556d1455c7cc9ba7b7fdc6ce75af60bf548270babdef6e17a7b19
BLAKE2b-256 checksum
How to use checksums
e59609deff92db8433caf15f3e936fdedd16daec8e4c11e47e312aa6d3636279
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ghs_hazard_pictogram-0.1.0-py3-none-any.whl

Download URL ghs_hazard_pictogram-0.1.0-py3-none-any.whl
Size 104.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a3bd07b0d8f9e912bf3907a6ede4d793f860a71ac1f0147ea5192fe7827c936
BLAKE2b-256 checksum
How to use checksums
4e4c744bb23d0ddc39a89040c16084e27eee670a6d447850c06f7d56d79f9469
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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