Skip to main content

Python library for access to PubMed

Project description

https://img.shields.io/pypi/v/pymed-iplweb.svg https://img.shields.io/travis/mpasternak/pymed-iplweb.svg

PyMed is a Python library that provides access to PubMed through the PubMed API. This is a fork, maintained by https://IPLweb.pl

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 pymed 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/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pymed_iplweb-0.8.10-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pymed_iplweb-0.8.10-py3-none-any.whl.

File metadata

  • Download URL: pymed_iplweb-0.8.10-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for pymed_iplweb-0.8.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3d86daf6e94327c4ce1c927bebbe7733a1c9845356087a3310ce5cfb310ee21c
MD5 a50ada8518501c0c17c743e7f3145cf0
BLAKE2b-256 e836174ee8615421dd4d0d712917deea30b8327f2ec6be594e76e599c9c71ba0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page