Skip to content

Releases: harshil21/carbonpy

First release

13 Jun 00:47
Compare
Choose a tag to compare

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/