A python interface to the pure-component properties database for Sandler 5e
Project description
sandlerprops
A Python interface to the pure-component properties database that originally accompanied the textbook Chemical, Biochemical, and Engineering Thermodynamics (4th edition) by Stan Sandler (Wiley, USA).
Installation
pip install sandlerprops
Usage example
Command-line interface
$ sandlerprops find methane
Found exact match: methane (index 116)
$ sandlerprops find methanx
methanx not found. Here are similars:
methane
methanol
ethane
ethanol
methylal
methyl amine
nitromethane
deutromethane
methyl silane
dimethylamine
$ sandlerprops show benzene
Properties of benzene (index 343):
No : 343
Formula : C6H6
Name : benzene
Molwt : 78.114 g/mol
Tfp : 278.7 K
Tb : 353.2 K
Tc : 562.2 K
Pc : 48.90 bar
Vc : 259.000 m3/mol
Zc : 0.271
Omega : 0.212
Dipm : 0
CpA : -33.92 J/mol-K
CpB : 0.4739 J/mol-K2
CpC : -3.0170e-04 J/mol-K3
CpD : 7.1300e-08 J/mol-K4
dHf : 82980.0 J/mol
dGf : 129700.0 J/mol
Eq : 1
VpA : -6.98273
VpB : 1.33213
VpC : -2.62863
VpD : -3.33399
Tmin : 288.0 K
Tmax : 562.2 K
Lden : 0.885
Tden : 289.0
API
>>> from sandlerprops.properties import PropertiesDatabase
>>> P = PropertiesDatabase()
>>> m = P.get_compound('methane')
>>> m.Molwt
16.043
>>> P.U.Molwt
'g/mol'
>>> m.Tc
190.4
>>> P.U.Tc
'K'
>>> e = P.get_compound('ethanz')
ethanz not found. Here are similars:
ethane
methane
ethanol
methanol
ethyl amine
ethylene
methylal
methyl amine
ethylbenzene
nitromethane
Release History
- 0.3.1
- set preferred atom ordering so that H comes right after C
- 0.3.0
- Introduced
Compoundclass for data returns - Corrected three typos in the original database
- Introduced
- 0.2.2
- updated formatting
- 0.1.0
- command-line interface
- 0.0.3
- returns similar names found in database if requested name is not found
- 0.0.2
- Updated dependencies
- 0.0.1
- Initial version
Meta
Cameron F. Abrams – cfa22@drexel.edu
Distributed under the MIT license. See LICENSE for more information.
https://github.com/cameronabrams
Contributing
- Fork it (https://github.com/cameronabrams/sandlerprops/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
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 sandlerprops-0.3.1.tar.gz.
File metadata
- Download URL: sandlerprops-0.3.1.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca59e4f8ea50da37a54125c9ed20c83d5cf3c1628e1220836fc395f4149cd7fd
|
|
| MD5 |
f1200bd736bbe0e891802082e04f0308
|
|
| BLAKE2b-256 |
3067ad37c64d922228ac6229c02302834ea91656a03dce2840c6136152038bbc
|
Provenance
The following attestation bundles were made for sandlerprops-0.3.1.tar.gz:
Publisher:
release.yaml on cameronabrams/sandlerprops
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sandlerprops-0.3.1.tar.gz -
Subject digest:
ca59e4f8ea50da37a54125c9ed20c83d5cf3c1628e1220836fc395f4149cd7fd - Sigstore transparency entry: 787513723
- Sigstore integration time:
-
Permalink:
cameronabrams/sandlerprops@9056b85ab770ca01b847ae9ddd94003d4f16e9f6 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cameronabrams
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@9056b85ab770ca01b847ae9ddd94003d4f16e9f6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sandlerprops-0.3.1-py3-none-any.whl.
File metadata
- Download URL: sandlerprops-0.3.1-py3-none-any.whl
- Upload date:
- Size: 49.3 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 |
2508b98ce34d1458b7d0bf8a0b0e25a4a1e270d1632460b6649083a61d946d50
|
|
| MD5 |
b50a962ce51410068f72c56786ad1a6f
|
|
| BLAKE2b-256 |
c5e8790756930d3620463ac560adeca4626027740a183ccf237aaa96ef2e1220
|
Provenance
The following attestation bundles were made for sandlerprops-0.3.1-py3-none-any.whl:
Publisher:
release.yaml on cameronabrams/sandlerprops
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sandlerprops-0.3.1-py3-none-any.whl -
Subject digest:
2508b98ce34d1458b7d0bf8a0b0e25a4a1e270d1632460b6649083a61d946d50 - Sigstore transparency entry: 787513727
- Sigstore integration time:
-
Permalink:
cameronabrams/sandlerprops@9056b85ab770ca01b847ae9ddd94003d4f16e9f6 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cameronabrams
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@9056b85ab770ca01b847ae9ddd94003d4f16e9f6 -
Trigger Event:
push
-
Statement type: