Skip to main content

Chemics

Chemics is a Python package for chemistry and chemical engineering applications. It is open-source and contributions from the scientific community are encouraged.

Installation

If you don't have Python installed on your computer, the Anaconda or Miniconda distribution of Python is recommended for scientific computing. After setting up Python, the chemics package can be downloaded and installed using the pip package manager.

$ pip install chemics

Usage

The example below imports the chemics package and creates a Gas class to calculate the density of nitrogen gas at a pressure of 101,325 Pa and 773 K.

import chemics as cm

gas = cm.Gas('N2')
rho = gas.rho(101325, 773)
print(rho)

# This prints a value of 0.4416

This example uses the ChemicalEquation class to get properties of the reactants and products from a given chemical equation.

import chemics as cm

ce = cm.ChemicalEquation('2 HCl + 2 Na -> 2 NaCl + H2')
ce.balance

# Returns True for balanced equation

ce.rct_properties

# Returns a dataframe of the reactant properties
#                HCl        Na
# moles            2         2
# species        HCl        Na
# molwt       36.458     22.99
# mass        72.916     45.98
# molfrac        0.5       0.5
# massfrac  0.613275  0.386725

More examples are available in the examples directory and in the documentation.

Documentation

Documentation for the chemics package is available at chemics.readthedocs.io.

Contributing

See the CONTRIBUTING.md document for guidelines on contributing to the Chemics package.

License

Chemics is available under the MIT License - see the LICENSE file for more information.

Metadata

Release files for chemics 23.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 chemics 23.2
File Size Uploaded
chemics-23.2.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for chemics 23.2
File Interpreter ABI Platform
chemics-23.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 MB

Release files / chemics-23.2.tar.gz

Download URL chemics-23.2.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
475393076bf934e2619c6ae348db2ee8cd15b8bb34c885690080f92d791b0f65
BLAKE2b-256 checksum
How to use checksums
eae3a8b083a9fc8efdd16c9293e579aa1c8f1ed9bf032deac8312eedb0763ac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / chemics-23.2-py3-none-any.whl

Download URL chemics-23.2-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b278f6e7ba908135f7f3a8c272dbd6ef4c0c3162f13fefe2197232f1b0fb6e37
BLAKE2b-256 checksum
How to use checksums
3e88f161197e0e73b44cdedd14ac51ce24d1da6a41213644050c03000fa18123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

24.1

2 release files

23.11

2 release files

This release

23.2 This release

2 release files

23.1

2 release files

22.10

2 release files

22.8

2 release files

21.10

2 release files

21.7

2 release files

21.5

2 release files

21.4

2 release files

20.9

2 release files

20.8

2 release files

20.7

2 release files

20.5

2 release files

20.4

2 release files

19.10

2 release files

19.8

2 release files

19.7

2 release files

19.6.1

2 release files

19.6

2 release files

19.5.2

2 release files

19.5.1

2 release files

19.5

2 release files

19.3

2 release files

0.1

2 release files

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