Skip to main content

chem_calc

The module chem_calc calculates chemical and physical properties based on the stoichometry of a chemical compound.

The 20 available properties (or features) used in this package are elemental properties from the CRC Handbook of Chemistry and Physics as well as the NIST X-ray Mass Attenuation Coefficients Database.

Available properties

CRC Handbook of Chemistry and Physics

Property / Feature Tag
Number of 4f electrons '4f'
Number of 5d electrons '5d'
Combined number of 4f and 5d electrons 'add4f5d'
Absolute value of the difference of number of 4f and 5d electrons 'sub4f5dabs'
Number of electrons 'allelectrons'
Number of valence outer shell electrons 'val_e'
Atomic number 'atomicnumber'
Atomic weight 'atomicweight'
First ionization energy 'ionenergy'
Pauling electronegativity of most common oxidation state 'el_neg_chi'
van der Waals radius 'R_vdw_element'
Covalent radius 'R_cov_element'
Atomic number to mass number ratio 'zaratio'
Excitation energy 'ex_energy'
Period 'period'
Elemental density 'density'

NIST X-ray Mass Attenuation Coefficients Database for features at 662 keV and include the following:

Property / Feature Tag
Coherent scattering coefficient 'co_scatt'
Incoherent scattering coefficient 'inco_scatt'
Photoelectric absorption 'pe_abs'
Coherent attenutation coefficient 'atten_co'
Incoherent attenutation coefficient 'atten_inco'

Methods

  • how_many -- Returns the number of atoms in a given chemical formula.
>>> import chem_calc
>>> chem_calc.chem_calc('H2O').howmany
3.0
  • total -- Returns the feature total for a given chemical formula.
>>> import chem_calc
>>> chem_calc.chem_calc('H2O',feature='atomicweight').total
18.014710000000001
  • avg_feature -- Returns the average value of a property for a given chemical formula.
>>> import chem_calc
>>> chem_calc.chem_calc('H2O',feature='atomicweight').avg_feature
6.0049033333333339

Installation

Use 'pip' to install from pypi:

pip install chem_calc

or 'pip' to install from github:

pip install git+https://github.com/garne041/chem_calc.git

or clone the package using git:

git clone https://github.com/garne041/chem_calc.git

Requirements

Requires numpy, pickle, and pandas

License

The original code that this project is based on https://repl.it/@Supakri2680/Molecular-Mass-Calculator2. In keeping with this mentality, all code is released under the MIT.

Metadata

Release files for chem-calc 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chem-calc 0.0.2
File Size Uploaded Provenance Actions
chem_calc-0.0.2.tar.gz 2.3 kB Without provenance Details for chem_calc-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chem-calc 0.0.2
File Interpreter ABI Platform Actions
chem_calc-0.0.2-py3-none-any.whl Python 3 none any Details for chem_calc-0.0.2-py3-none-any.whl

Total release size: 5.3 kB

Release files / chem_calc-0.0.2.tar.gz

Download URL chem_calc-0.0.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
df56357f8fe3f29b3ec1354f6ea99bb2b97eeb8f7e6d2fc86bffa721e6f5e3f4
BLAKE2b-256 checksum
How to use checksums
3df2e45b4d8c93384d8b928f9f41a528be7f568086ec6611298a730a7b906d82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.0

Release files / chem_calc-0.0.2-py3-none-any.whl

Download URL chem_calc-0.0.2-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f1d1945075a5f4c795db60378a765400166afc748d1b4c5a3de6b812c5b11fe
BLAKE2b-256 checksum
How to use checksums
ff1a37a3e9fe53edf66053a352aa6870223636b6f46abedd346a30ed0de44798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.0

Security for chem-calc 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page