--- id: pubchempy version: "1.0.5" license: MIT license_treatment: permissive maintenance: aging --- # PubChemPy — A simple Python wrapper around the PubChem PUG REST API. License: permissive · Maintenance: aging · Downloads: 5.4M/mo ## What it is and what it does PubChemPy is a lightweight Python interface to PubChem, the U.S. National Library of Medicine's free chemistry database. It abstracts the REST API into a simple object-oriented API, letting you retrieve compound records by identifier, search by chemical name or structure, and access properties like SMILES notation, molecular weight, and IUPAC names. The package has no external dependencies beyond Python itself, making it easy to integrate into chemistry, cheminformatics, and drug discovery workflows. The library is mature (first released in 2013) and supports modern Python versions (3.10 through 3.13). It is classified as Production/Stable and targets developers, researchers, and healthcare professionals. The aging maintenance status reflects a gap since the last release, but the repository remains available and the API is stable. Use it for: - Look up chemical compound properties and identifiers by name for research or data enrichment. - Retrieve SMILES strings and molecular descriptors for cheminformatics analysis or machine learning. - Perform substructure and similarity searches to find related compounds in PubChem. - Automate batch queries of compound data for drug discovery or chemical inventory systems. - Convert between chemical file formats and standardize chemical representations. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PubChemPy is a Python wrapper around the PubChem REST API that lets you search for chemical compounds by name, substructure, or similarity, retrieve their properties, and convert between chemical file formats. Yes. PubChemPy is a stable, dependency-free wrapper around a reliable public API with no known vulnerabilities. It is well-suited for any Python project that needs to query chemical compound data. The aging maintenance is a minor concern—the last release was 340 days ago—but the codebase is Production/Stable, supports current Python versions, and the underlying PubChem API is maintained by the NIH. Install it if you need programmatic access to PubChem data. ## Install pip install pubchempy uv add pubchempy poetry add pubchempy ## Installing PubChemPy Before you install: Installation is straightforward with low friction; the package has no runtime dependencies. Maintenance is aging—the last release was 340 days ago—but the repository remains active with recent commits and the codebase is marked as Production/Stable. License in practice: MIT license is permissive; you can use, modify, and distribute this package with minimal legal restrictions, as long as you include the license notice. Quickstart: pip install pubchempy import pubchempy as pcp comp = pcp.Compound.from_cid(1423) print(comp.smiles, comp.iupac_name) Requires Python 3.10 or later; also requires network access to the PubChem REST API. Verify before relying: - Whether the PubChem API has rate limits or usage quotas that affect production workloads. - Performance characteristics for large-scale batch queries or searches. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 5.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pubchem api python wrapper, chemical compound search, molecular property retrieval, cheminformatics library, chemical structure lookup, smiles molecular weight, compound database query, chemistry, api-wrapper, cheminformatics [View on SkillFed](https://skillfed.io/packages/pubchempy) · [View on PyPI](https://pypi.org/project/pubchempy/)