Skip to content

Python package to convert possible text into its equivalent using chemical symbols.

License

Notifications You must be signed in to change notification settings

lancylot2004/Chemname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chemname

This package converts any eligible text to its equivalent using chemical element names.

Usage

>>> from chemname import chem

Results are return as a list of lists, each containing a possible alternative. If there is one possiblity:

>>> chem.chemname("Ash")
    [['As', 'H']]

The matching process is case insensitive.

>>> chem.chemname("ash")
    [['As', 'H']]

If there are more possibilities:

>>> chem.chemname("Practice")
    [['P', 'Ra', 'C', 'Ti', 'Ce'], ['Pr', 'Ac', 'Ti', 'Ce']]

About

Python package to convert possible text into its equivalent using chemical symbols.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages