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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file chemname-0.0.post1.tar.gz.

File metadata

  • Download URL: chemname-0.0.post1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for chemname-0.0.post1.tar.gz
Algorithm Hash digest
SHA256 5d06d5f6ea42f8f3f84fc10eafa7c9dcf15ea4f87e1605c4c1bb776c00878d7e
MD5 9d60e10a7fa1c904c1df0020296874ec
BLAKE2b-256 e4d08c715b81bbdecc88759e1c0053777a38df01be0e9f901da12cb0ed8332f8

See more details on using hashes here.

File details

Details for the file chemname-0.0.post1-py3-none-any.whl.

File metadata

  • Download URL: chemname-0.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for chemname-0.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc81ee04281ebedc6d9f76a9019f440707e74ba093c5dae20bd672efd67f6a41
MD5 4daed00c6036f5dd4440f9d14f881d6b
BLAKE2b-256 d8889dd7d50e337e3e7a8aa3e04488cf85e6d042128620e051120d33dc8782af

See more details on using hashes here.

Supported by

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