Skip to main content

A script to calculate the molecular mass of a chemical compound in g/mol with its chemical formula

Project description

Mass

A python script to find the molecular mass in g/mol of a chemical equation

Example

$ calcmass C6H12O6
180.15588
$ calcmass Cr2O7
215.98800
$ calcmass C11H22
154.29238
$ calcmass Al2Si2O5[OH]4
258.16044

Setup

You can download using PyPi

Using pip:

$ pip install --user calcmass

For system wide download(Not Suggested):

$ sudo pip install calcmass

Or download the zip file at https://pypi.python.org/pypi/calcmass/1.5

Then run:

$ python setup.py install

If the calcmass command is not found add this to your .bashrc or .bash_profile

MacOs:

export PATH=$PATH:$HOME/Library/Python/2.7/bin

Linux:

export PATH=$PATH:$HOME/.local/bin

License

Mass is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for calcmass, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size calcmass-2.0-py3-none-any.whl (5.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size calcmass-2.0.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page