Skip to content

First release

Latest
Compare
Choose a tag to compare
@harshil21 harshil21 released this 13 Jun 00:47
· 9 commits to master since this release

This release contains support for naming condensed chemical compounds. Only saturated/unsaturated straight chain compounds are supported for now.

You can install using:
pip install carbonpy

Simple usage:

from carbonpy import Namer

compound1 = Namer('CH3-CH3')

print(compound1.analyser())
>>> 'Ethane'

compound2 = Namer('CH~C-C~C-CH=C=C=CH2')

print(compound2.analyser())
>>> 'Octa-1,2,3-trien-5,7-diyne'

print(compound2.molecular_formula())
>>> 'C₈H₄'

Webpage to pypi.org - https://pypi.org/project/carbonpy/