Skip to content

Latest commit

Β 

History

History
50 lines (32 loc) Β· 1.05 KB

README.md

File metadata and controls

50 lines (32 loc) Β· 1.05 KB

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.