Skip to main content

A simple Python wrapper around the NIST Chemistry WebBook

Project description

NistChemPy: Python API for NIST Chemistry WebBook

NistChemPy is an unofficial API for the NIST Chemistry WebBook.

This package not only automates the search and data extraction processes but also bypasses the WebBook's limitation of 400 compounds per search.

Currently, NistChemPy enables the extraction of basic compound properties as well as IR, THz, MS, and UV-Vis spectra and gas chromatography data.

Additional properties are available via URLs that link to their respective web pages, with potential support for direct extraction in future updates.

Main features

  1. Search:

    • Search by name, chemical formula, CAS RN, InChI / InChI Key: nistchempy.run_search.

    • Search by structure, including substructural search: nistchempy.run_structural_search.

    • Search over the table of pre-extracted components: nistchempy.get_all_data. This is useful considering that NIST Chemistry WebBook returns maximum of 400 found compounds only.

  2. Compound info (nistchempy.compound.NistCompound):

    • Object contains all properties and corresponding URLs.

    • Supports extraction of:

      • 2D and 3D atomic coordinates.

      • Spectral data (IR, MS, UV-Vis).

      • Gas chromatography data.

    • Extraction of other data is under development: it's a good idea to expect two feature updates per year.

For more details see the CookBook section of the documentation.

Extracted data

Before using NistChemPy, please check NistChemData.

This repository contains information that has already been extracted from the WebBook using NistChemPy functionality.

By doing so, you can bypass the web-scraping stage and proceed directly to data manipulation.

Installation

Install NistChemPy using pip:

pip install nistchempy

[!WARNING] Please note that versions starting with 1.0.0 are not backward compatible with the older alpha versions due to significant changes in the code structure. You may need to update your nistchempy-based code or use the older nistchempy versions.

How To

The primary features of NistChemPy, such as search capabilities and compound manipulations, are detailed in the documentation.

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

nistchempy-1.0.5.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

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

nistchempy-1.0.5-py3-none-any.whl (11.4 MB view details)

Uploaded Python 3

File details

Details for the file nistchempy-1.0.5.tar.gz.

File metadata

  • Download URL: nistchempy-1.0.5.tar.gz
  • Upload date:
  • Size: 11.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for nistchempy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 711a8508609367fc8787146e041a932adb35d27622989312262b9d0884f34f39
MD5 b5aca4a00585d4726f0648b692d27471
BLAKE2b-256 dd4c8b348e3766ff1011b82015423e0e52a3a31beac1c66b6e8e2f6f0f75f1e6

See more details on using hashes here.

File details

Details for the file nistchempy-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: nistchempy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for nistchempy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6f19158852426e8fabbd90142af4abc2fcdbc6817d7da3d209fecde7f46d3cfb
MD5 f62f64afb0520bd67ef26ef35790ee58
BLAKE2b-256 bea611ad2c955b69f2694def5428b8cf54c9c706efc56a3d0d735b6b645b1250

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