Skip to main content

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 results
  • MINOR: New norm support added
  • PATCH: Bugfix or new substances without normative impact

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

riskfw-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

riskfw-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

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

Hashes for riskfw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ecd293948921e6d0a057141527f5dc1af9c4721c8ee96d15c6e9808fa820b29
MD5 de3df4b70bf1447b8c9015b1d1c909b3
BLAKE2b-256 9e407ded05cbc3ef081ed66db468ba4cf02849df0b6556ec2c67fc8b78e333bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for riskfw-0.1.0.tar.gz:

Publisher: publish.yml on achimdehnert/riskfw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for riskfw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e6671a53405a8389da601bb9b50ed5c676963c98a0e08bb81de23d3d61b8cb
MD5 cddc831b1f6864d3f3b56b58c86b9e85
BLAKE2b-256 4136be7924fcc054c82868ce8062d8c4af60015cf5e1a4f83afed66763ff83e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for riskfw-0.1.0-py3-none-any.whl:

Publisher: publish.yml on achimdehnert/riskfw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page