chemistry_tools.pubchem.utils

Attention

This module has the following additional requirements:

cawdrey>=0.1.7
mathematical>=0.1.13
pillow>=7.0.0; platform_python_implementation == "PyPy" and python_version >= "3.8" and platform_system == "Windows"
pillow>=7.0.0; platform_python_implementation == "PyPy" and python_version >= "3.7" and platform_system != "Windows"
pillow>=7.0.0; platform_python_implementation != "PyPy"
pillow<9.0.0,>=7.0.0; platform_python_implementation == "PyPy" and python_version == "3.7" and platform_system == "Windows"
pillow<8.0.0,>=7.0.0; platform_python_implementation == "PyPy" and python_version == "3.6"
pyparsing>=2.4.6
tabulate>=0.8.9

These can be installed as follows:

python -m pip install chemistry-tools[pubchem]

General utility functions.

Functions:

format_string(stringwithmarkup)

Convert a PubChem formatted string into an HTML formatted string.

format_string(stringwithmarkup)[source]

Convert a PubChem formatted string into an HTML formatted string.

Parameters

stringwithmarkup (Dict[str, Any])

Return type

str