PubChemPy-1.0.5
توضیحات
A simple Python wrapper around the PubChem PUG REST API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | PubChemPy-1.0.5 |
| نام | PubChemPy |
| نسخه کتابخانه | 1.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Matt Swain <m.swain@me.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/PubChemPy/ |
| مجوز | - |
# PubChemPy
[](https://pypi.python.org/pypi/PubChemPy)
[](https://anaconda.org/conda-forge/pubchempy)
[](https://github.com/mcs07/PubChemPy/blob/main/LICENSE)
[](https://zenodo.org/badge/latestdoi/7462957)
[](https://github.com/mcs07/PubChemPy/actions/workflows/test.yml)
[](https://docs.pubchempy.org)
PubChemPy provides a way to interact with PubChem in Python. It allows chemical searches by name, substructure and similarity, chemical standardization, conversion between chemical file formats, depiction and retrieval of chemical properties.
## Installation
Install PubChemPy with pip:
```shell
pip install pubchempy
```
Or with conda:
```shell
conda install -c conda-forge pubchempy
```
For detailed instructions, see the [installation guide](https://docs.pubchempy.org/en/latest/guide/install.html).
## Example usage
Retrieve a compound by its PubChem Compound Identifier (CID) and print its SMILES and IUPAC name:
```pycon
>>> import pubchempy as pcp
>>> comp = pcp.Compound.from_cid(1423)
>>> print(comp.smiles)
CCCCCCCNC1CCCC1CCCCCCC(=O)O
>>> print(comp.iupac_name)
7-[2-(heptylamino)cyclopentyl]heptanoic acid
```
Search compounds by name and print the SMILES and molecular weight of the first result:
```pycon
>>> results = pcp.get_compounds("Aspirin", "name")
>>> print(results[0].smiles)
CC(=O)OC1=CC=CC=C1C(=O)O
>>> print(results[0].molecular_weight)
180.16
```
## Documentation
Full documentation is available at <https://docs.pubchempy.org>.
This includes a [step-by-step guide on how to use PubChemPy](https://docs.pubchempy.org/en/latest/guide/gettingstarted.html), as well as a [complete API reference](https://docs.pubchempy.org/en/latest/api.html).
## Contributing
- Feature ideas and bug reports are welcome on the [Issue Tracker](https://github.com/mcs07/PubChemPy/issues).
- Fork the [source code](https://github.com/mcs07/PubChemPy) on GitHub, make changes and file a pull request.
## License
PubChemPy is licensed under the [MIT license](https://github.com/mcs07/PubChemPy/blob/main/LICENSE).
نیازمندی
| مقدار | نام |
|---|---|
| xtr | pandas>=0.16.2; |
| xtr | certifi>=2025.7.14; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl PubChemPy-1.0.5:
pip install PubChemPy-1.0.5.whl
نصب پکیج tar.gz PubChemPy-1.0.5:
pip install PubChemPy-1.0.5.tar.gz