Skip to main content

Python library for accessing the CommonChemistry.org API

Project description

pyComChem

A Python package to access data via the CommonChemistry.org API.

A revised version of the CommonChemistry website, originally at commonchemistry.org, has been redeveloped into a much larger (~500K) database of CAS Registry Numbers and now includes an API for programmatic access.

This package provides access to the API to search the database and extract chemical metadata, images, and mol files.

Currently available commands are:

  • query - search either and exact string or substring
  • detail - full metadata retrieval
  • key2cas - specialized function to return the CAS Registry Number of a compound from its InChIKey
  • chemimg - download structural images an .svg, .png, or .ps files

Future improvements will include

  • molfile - download the mol file of a compound

Configuration

Before running this package, sign up on the Common Chemistry website for an API KEY

Updates

  • updated the code to handle the CAS addition of an APIKey (2/15/26)

Presentation

“Supporting the global community with CAS common chemistry” Andrea Jacobs, Stuart Chalk, Leah McEwen, Amy Liu, Ka Wing Kelly Cao paper presented at the ACS Virtual Meeting, March 2022

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

pycomchem-0.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pycomchem-0.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pycomchem-0.4.tar.gz.

File metadata

  • Download URL: pycomchem-0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for pycomchem-0.4.tar.gz
Algorithm Hash digest
SHA256 ecbbccb92ca65873a7e6489d3e9a38b7ad18be63e1e8aeca3a2df325a9541b23
MD5 9b2819d88be0cb4d712f73a2d8fb0172
BLAKE2b-256 49451620d8e3e5d321949e4df62ec693c61ce8f06f512b7ce66572fe3861e145

See more details on using hashes here.

File details

Details for the file pycomchem-0.4-py3-none-any.whl.

File metadata

  • Download URL: pycomchem-0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for pycomchem-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 23ae0aa91789ed49d8cbcf128c91639e9b4622b827cd069f1f6d7391bb602812
MD5 493b2e44b73794993dea1b8b957c3383
BLAKE2b-256 44696c82868c2c5c80573c79cc80912bbcdd57f7ada92e60edddfd3d6fc28a0d

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