Risk Framework — Safety calculations for explosion protection (TRGS 721/722, ATEX, EN 1127-1)
Project description
riskfw — Risk Framework
Pure-Python safety calculation library for explosion protection. No Django, no HTTP, no external dependencies — stdlib only.
Standards
| Module | Standard |
|---|---|
riskfw.zones |
TRGS 721:2017-09, TRGS 722:2012-08 |
riskfw.equipment |
ATEX 2014/34/EU, IEC 60079-0 |
riskfw.ignition |
EN 1127-1:2019 |
riskfw.substances |
GESTIS/DGUV (static, auditable) |
Installation
pip install riskfw
Or as Git dependency (pre-release):
riskfw @ git+https://github.com/achimdehnert/riskfw@v0.1.0
Quick Start
from riskfw.zones import calculate_zone_extent
from riskfw.equipment import check_equipment_suitability
from riskfw.substances import get_substance_properties
# Zone calculation per TRGS 721
result = calculate_zone_extent(
release_rate_kg_s=0.1,
ventilation_rate_m3_s=2.0,
substance_name="ethanol",
release_type="jet",
)
print(result.zone_type) # ZoneType.ZONE_1
print(result.radius_m)
# ATEX equipment check
check = check_equipment_suitability(ex_marking="II 2G Ex d IIB T4", zone="1")
print(check.is_suitable) # True
# Substance lookup
props = get_substance_properties("ethanol")
print(props.lower_explosion_limit) # 3.1
Versioning
MAJOR: Norm edition changes affecting calculation resultsMINOR: New norm support addedPATCH: Bugfix or new substances without normative impact
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file riskfw-0.1.0.tar.gz.
File metadata
- Download URL: riskfw-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ecd293948921e6d0a057141527f5dc1af9c4721c8ee96d15c6e9808fa820b29
|
|
| MD5 |
de3df4b70bf1447b8c9015b1d1c909b3
|
|
| BLAKE2b-256 |
9e407ded05cbc3ef081ed66db468ba4cf02849df0b6556ec2c67fc8b78e333bd
|
Provenance
The following attestation bundles were made for riskfw-0.1.0.tar.gz:
Publisher:
publish.yml on achimdehnert/riskfw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
riskfw-0.1.0.tar.gz -
Subject digest:
8ecd293948921e6d0a057141527f5dc1af9c4721c8ee96d15c6e9808fa820b29 - Sigstore transparency entry: 1017068830
- Sigstore integration time:
-
Permalink:
achimdehnert/riskfw@fe6d6f530c60e32780701fee0ddcf0c48834668e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achimdehnert
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fe6d6f530c60e32780701fee0ddcf0c48834668e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file riskfw-0.1.0-py3-none-any.whl.
File metadata
- Download URL: riskfw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5e6671a53405a8389da601bb9b50ed5c676963c98a0e08bb81de23d3d61b8cb
|
|
| MD5 |
cddc831b1f6864d3f3b56b58c86b9e85
|
|
| BLAKE2b-256 |
4136be7924fcc054c82868ce8062d8c4af60015cf5e1a4f83afed66763ff83e9
|
Provenance
The following attestation bundles were made for riskfw-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on achimdehnert/riskfw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
riskfw-0.1.0-py3-none-any.whl -
Subject digest:
a5e6671a53405a8389da601bb9b50ed5c676963c98a0e08bb81de23d3d61b8cb - Sigstore transparency entry: 1017068890
- Sigstore integration time:
-
Permalink:
achimdehnert/riskfw@fe6d6f530c60e32780701fee0ddcf0c48834668e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/achimdehnert
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fe6d6f530c60e32780701fee0ddcf0c48834668e -
Trigger Event:
workflow_dispatch
-
Statement type: