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.psfiles
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycomchem-0.4.tar.gz | 4.0 kB | Without provenance | Details for pycomchem-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycomchem-0.4-py3-none-any.whl | Python 3 | none | any | Details for pycomchem-0.4-py3-none-any.whl |
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
|
Security for PyComChem 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.