Skip to main content

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 Properties as P
>>> 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.2.1
    • 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

  1. Fork it (https://github.com/cameronabrams/sandlerprops/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

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

sandlerprops-0.2.1.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

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

sandlerprops-0.2.1-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file sandlerprops-0.2.1.tar.gz.

File metadata

  • Download URL: sandlerprops-0.2.1.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sandlerprops-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5cf52d6815f72bb8d0f05603407487d1216273ba88a3dc9b4d17493ed6de9422
MD5 e1d4f243b1d17127f962adc3a5c83db4
BLAKE2b-256 dca2bdbdd4dd3f72d51d52f150039464c9fbd9284fab755891d183ccba9752c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlerprops-0.2.1.tar.gz:

Publisher: release.yaml on cameronabrams/sandlerprops

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

File details

Details for the file sandlerprops-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: sandlerprops-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sandlerprops-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d272a8e7be510e8087c4a398245bbc549264cacef89d6f76bb3e6603c921353a
MD5 ae08c9e9b0aeda3a25ec4192ea3b53f6
BLAKE2b-256 c1cd7812b17f87ff4707d402e5467908251c11fa493088b96d3c8cd59860eeee

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlerprops-0.2.1-py3-none-any.whl:

Publisher: release.yaml on cameronabrams/sandlerprops

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