Skip to main content

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

Metadata

Release files for PyComChem 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyComChem 0.4
File Size Uploaded
pycomchem-0.4.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyComChem 0.4
File Interpreter ABI Platform
pycomchem-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / pycomchem-0.4.tar.gz

Download URL pycomchem-0.4.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ecbbccb92ca65873a7e6489d3e9a38b7ad18be63e1e8aeca3a2df325a9541b23
BLAKE2b-256 checksum
How to use checksums
49451620d8e3e5d321949e4df62ec693c61ce8f06f512b7ce66572fe3861e145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

Release files / pycomchem-0.4-py3-none-any.whl

Download URL pycomchem-0.4-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23ae0aa91789ed49d8cbcf128c91639e9b4622b827cd069f1f6d7391bb602812
BLAKE2b-256 checksum
How to use checksums
44696c82868c2c5c80573c79cc80912bbcdd57f7ada92e60edddfd3d6fc28a0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page