/chemica

A simple library that takes chemistry to the next level ๐Ÿ‘จโ€๐Ÿ”ฌ๐Ÿ”ฌ๐Ÿฅฝ๐Ÿงช๐Ÿงฌ

Primary LanguagePythonMIT LicenseMIT

Chemica

A simple library that takes chemistry to the next level ๐Ÿ‘จโ€๐Ÿ”ฌ๐Ÿ”ฌ๐Ÿฅฝ๐Ÿงช๐Ÿงฌ

Installation:

Download the latest version of the library using pip
$ pip3 install chemica -U

Usage examples:

Solving equation:
from chemica import Chemica

print(Chemica.solve("CuCl2", "Zn"))
This example will return this equation object:
Equation(substances=('CuCl2', 'Zn'), result='CuCl2(aq) + Zn(s) โ†’ Cu(s) + ZnCl2(aq)')

Getting info about substance:
from chemica import Chemica

print(Chemica.info("Zn"))
This example will return this substance object:
Substance(substance='Zn', name='Zinc, Zinc powder (pyrophoric), Zn, Element 30, 30Zn, Cinc, Zink, Zn(ii), Zn2+, Zincum, Blue powder', condition='Grey-to-blue powder')

License

The library is under the MIT license.

Read the LICENSE for more information.