PyMedX is a fork from a archived project called PyMed: https://github.com/gijswobben/pymedx
PyMedX - PubMed Access through Python
PyMedX is a Python library that provides access to PubMed through the PubMed API.
Why this library?
The PubMed API is not very well documented and querying it in a performant way is too complicated and time consuming for researchers. This wrapper provides access to the API in a consistent, readable and performant way.
Features
This library takes care of the following for you:
- Querying the PubMed database (with the standard PubMed query language)
- Batching of requests for better performance
- Parsing and cleaning of the retrieved articles
Examples
For full (working) examples have a look at the examples/ folder in this
repository. In essence you only need to import the PubMed class, instantiate
it, and use it to query:
from pymedx import PubMed
pubmed = PubMed(tool="MyTool", email="my@email.address")
results = pubmed.query("Some query", max_results=500)
Notes on the API
The original documentation of the PubMed API can be found here: PubMed Central. PubMed Central kindly requests you to:
- Do not make concurrent requests, even at off-peak times; and
- Include two parameters that help to identify your service or application to our servers
- tool should be the name of the application, as a string value with no internal spaces, and
- email should be the e-mail address of the maintainer of the tool, and should be a valid e-mail address.
Notice of Non-Affiliation and Disclaimer
The author of this library is not affiliated, associated, authorized, endorsed by, or in any way officially connected with PubMed, or any of its subsidiaries or its affiliates. The official PubMed website can be found at https://www.ncbi.nlm.nih.gov/pubmed/.
Metadata
Release files for pymedx 0.5.1
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 |
|---|---|---|---|---|
| pymedx-0.5.1.tar.gz | 13.1 kB | Without provenance | Details for pymedx-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymedx-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for pymedx-0.5.1-py3-none-any.whl |
Total release size: 27.3 kB
Release files / pymedx-0.5.1.tar.gz
| Download URL | pymedx-0.5.1.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21294f0ad73cf0a1835e0e933e3f48fb57e9bef6b680d6e368895f3ce332aaec
|
|
BLAKE2b-256 checksum How to use checksums |
fabae49f0ef6027739f3d4266a4659010f90e7a2d2ecd59419ab9983e8ff2759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure
|
Release files / pymedx-0.5.1-py3-none-any.whl
| Download URL | pymedx-0.5.1-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be4b3858b60a43810d413b7ebdbd0a5a5591cb164a7882c1018df6ea6ec284ff
|
|
BLAKE2b-256 checksum How to use checksums |
fe843f35f9c7bef49a1e9d6c05264fe3cc41086e507f425772340d368bd4be01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure
|
Security for pymedx 0.5.1
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.