Skip to main content

Calculating the Molecular Weight from a Chemical Formula, Common Name, or Protein Sequence

PyPI version Actions Status Documentation Status Downloads License

The ChemW library contains three packages, each with a distinct use-case, which are detailed in the following sections.

The ChemMW package parses any chemical formula that adheres to chemical conventions – which can consist of any combination of elements and decimal stoichiometry – and calculates the MW of the chemical formula with the most accurate elemental masses that are available, per the chemicals module. The MW is precisely constrained to the significant digits of constituent elements in the chemical formula.

The Proteins and PHREEQdg packages are applications of the ChemMW package. The Proteins package returns the mass of a protein by either parsing a string of a protein sequence, or by parsing a FASTA-formatted file. This is applied in the Codons module for genome-scale biology and bioengineering. The PHREEQdb package parses a PHREEQ database, calculates the MW of each mineral in the database, and exports a JSON of all mineral masses from the database. This is pivotally applied in the PHREEQC databases of the ROSSpy module for reverse osmosis research.

The ChemW library is offered with the MIT License. Examples of the module are available in the examples directory of the ChemW GitHub repository. Please submit errors or inaccuracies as GitHub issues so that they may be resolved.

Installation

The following command installs ChemW in a command prompt/terminal environment:

pip install chemw

The full documentation is available on ReadTheDocs.

Release files for ChemW 0.3.5

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

Source distribution (sdist)

Source distribution for ChemW 0.3.5
File Size Uploaded
ChemW-0.3.5.tar.gz 467.6 kB Details

Release files / ChemW-0.3.5.tar.gz

Download URL ChemW-0.3.5.tar.gz
Size 467.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e52e08da637afa63963c1f04222b0a7d189f4fa80ea88c046b930112c4057b71
BLAKE2b-256 checksum
How to use checksums
e75af44214b9027e30a03db7fca3745a00723b46e448652f8c4927b29e68d749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.3.5 This release

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.15

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.2

1 release file

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