Physicochemical Hazard Observation & Energetics Numerical Indexing eXpert - A Python library for reactive chemical hazard evaluation
Project description
PHOENIX
Physicochemical Hazard Observation & Energetics Numerical Indexing eXpert
A Python library for reactive chemical hazard evaluation, successor to ASTM CHETAH.
Warning: PHOENIX is for screening purposes only. Results must not be used as the sole basis for safety decisions. Experimental validation is required before handling energetic materials.
Documentation
Features
- Thermodynamic Estimation: Calculate ΔHf°, S°, Cp(T) using Benson Group Additivity
- Hazard Classification: CHETAH-style criteria for instability screening
- Decomposition Analysis: Maximum heat of decomposition (ΔHd) calculation
- Batch Processing: Screen large SMILES datasets efficiently
- Reaction Balancing: Auto-balance chemical reactions with thermodynamics
Installation
pip install phoenix-chem
Or with uv:
uv pip install phoenix-chem
Quick Example
from phoenix import Compound
# Create a compound from SMILES
compound = Compound.from_smiles("Cc1c([N+](=O)[O-])cc([N+](=O)[O-])cc1[N+](=O)[O-]") # TNT
# Get properties
print(f"Formula: {compound.formula}")
print(f"Molecular Weight: {compound.molecular_weight:.2f} g/mol")
print(f"Oxygen Balance: {compound.oxygen_balance:.1f}%")
# Evaluate hazard
result = compound.evaluate_hazard()
print(f"Hazard Class: {result.hazard_class}")
print(f"Max ΔHd: {result.max_decomposition_cal_g:.1f} cal/g")
Batch Screening
from phoenix import screen
smiles_list = ["CCO", "c1ccccc1[N+](=O)[O-]", "Cc1c([N+](=O)[O-])cc([N+](=O)[O-])cc1[N+](=O)[O-]"]
results = screen(smiles_list)
# Get DataFrame
df = results.dataframe
print(df[["formula", "hazard_class", "delta_hd_cal_g"]])
# Export
results.to_csv("screening_results.csv")
Supported Elements
PHOENIX supports compounds containing: C, H, N, O, S, P, F, Cl, Br
LLM-Friendly Documentation
PHOENIX provides llms.txt for LLM consumption following the llmstxt.org specification.
License
MIT License - see LICENSE for details.
References
- ASTM E659: Standard Test Method for CHETAH
- Benson, S.W. "Thermochemical Kinetics" (Wiley, 1976)
- Meyer et al., "Explosives" 6th Ed. (Wiley-VCH, 2007)
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 phoenix_chem-0.1.0.tar.gz.
File metadata
- Download URL: phoenix_chem-0.1.0.tar.gz
- Upload date:
- Size: 218.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
548c889a25487bf9803416244960df84125dbc24e04a4d67d3101ba3d54860e8
|
|
| MD5 |
f74d933a7d0a5ef326bead48046f9d7b
|
|
| BLAKE2b-256 |
d5d426dd7f915aad9d0827df3c0b13c2dd45422ce36b5d527c00570fc3f4f98b
|
Provenance
The following attestation bundles were made for phoenix_chem-0.1.0.tar.gz:
Publisher:
publish.yml on Ameyanagi/phoenix-chem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phoenix_chem-0.1.0.tar.gz -
Subject digest:
548c889a25487bf9803416244960df84125dbc24e04a4d67d3101ba3d54860e8 - Sigstore transparency entry: 844991412
- Sigstore integration time:
-
Permalink:
Ameyanagi/phoenix-chem@4033530679a9515c1c8813b495a3c807688ecffe -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Ameyanagi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4033530679a9515c1c8813b495a3c807688ecffe -
Trigger Event:
release
-
Statement type:
File details
Details for the file phoenix_chem-0.1.0-py3-none-any.whl.
File metadata
- Download URL: phoenix_chem-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.2 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 |
a5f1b95798f5773a278cabd651b95f62d73cfddd497253d7b8be2f6b0f2a13d8
|
|
| MD5 |
93746ba9948849c76ad1df5227829efa
|
|
| BLAKE2b-256 |
b2561086aa8bd3f6ede70e2f658194140fdcc35838505fce2b7b8697e2d9340c
|
Provenance
The following attestation bundles were made for phoenix_chem-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Ameyanagi/phoenix-chem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phoenix_chem-0.1.0-py3-none-any.whl -
Subject digest:
a5f1b95798f5773a278cabd651b95f62d73cfddd497253d7b8be2f6b0f2a13d8 - Sigstore transparency entry: 844991414
- Sigstore integration time:
-
Permalink:
Ameyanagi/phoenix-chem@4033530679a9515c1c8813b495a3c807688ecffe -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Ameyanagi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4033530679a9515c1c8813b495a3c807688ecffe -
Trigger Event:
release
-
Statement type: