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 methane
Properties for methane (index 116):
  No: 116
  Formula: CH4
  Name: methane
  Molwt: 16.043 g/mol
  Tfp: 90.7 K
  Tb: 111.6 K
  Tc: 190.4 K
  Pc: 46.0 bar
  Vc: 99.2 m3/mol
  Zc: 0.288
  Omega: 0.011
  Dipm: 0.0
  CpA: 19.25 J/mol-K
  CpB: 0.05213 J/mol-K2
  CpC: 1.197e-05 J/mol-K3
  CpD: -1.132e-08 J/mol-K4
  dHf: -74900.0 J/mol
  dGf: -50870.0 J/mol
  Eq: 1
  VpA: -6.00435
  VpB: 1.1185
  VpC: -0.83408
  VpD: -1.22833
  Tmin: 91.0 K
  Tmax: 190.4 K
  Lden: 0.425
  Tden: 112.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.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.1.0.tar.gz (44.9 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.1.0-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sandlerprops-0.1.0.tar.gz
Algorithm Hash digest
SHA256 773baf5865c46dc570f0e7a5ea3bcc7585f8f4e2a4ad330dbfdd23627841c85d
MD5 e88ff0662052517e5d6a583f626833c2
BLAKE2b-256 15d4eaaa2caca9ebee92cfe628cd7f542ee52ab0aaec15c6fbdefe4c16c85be6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlerprops-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: sandlerprops-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22086c5cede3f847d12bc8cf2ddae17f71225e15a95217b9fcbdc4cf7d14b579
MD5 d4ae76520514b2d6b6ebb5b4d913f4de
BLAKE2b-256 4de8d4c557b8960de265dda8bdaa2f61e7d02099cd94e16577051376680ad85f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlerprops-0.1.0-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