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
Metadata
Release files for riskfw 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| riskfw-0.1.0.tar.gz | 12.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| riskfw-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.9 kB
Release files / riskfw-0.1.0.tar.gz
| Download URL | riskfw-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ecd293948921e6d0a057141527f5dc1af9c4721c8ee96d15c6e9808fa820b29
|
|
BLAKE2b-256 checksum How to use checksums |
9e407ded05cbc3ef081ed66db468ba4cf02849df0b6556ec2c67fc8b78e333bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logRelease files / riskfw-0.1.0-py3-none-any.whl
| Download URL | riskfw-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5e6671a53405a8389da601bb9b50ed5c676963c98a0e08bb81de23d3d61b8cb
|
|
BLAKE2b-256 checksum How to use checksums |
4136be7924fcc054c82868ce8062d8c4af60015cf5e1a4f83afed66763ff83e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logSecurity for riskfw 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for riskfw-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.