Skip to main content

A tool to convert any text to chemical names, where possible.

Project description

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']]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chemname-0.0.post1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

chemname-0.0.post1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page