Skip to main content

Python library for access to PubMed

Project description

PyMed - PubMed Access through Python

PyMed 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 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 Distribution

pymed-0.8.7.tar.gz (257.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymed-0.8.7-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pymed-0.8.7.tar.gz.

File metadata

  • Download URL: pymed-0.8.7.tar.gz
  • Upload date:
  • Size: 257.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pymed-0.8.7.tar.gz
Algorithm Hash digest
SHA256 48ef1fcb1e98fb2803457befdaf6811d9724b80c2f57ab3f938654957f4e9dfe
MD5 374de66f08be2bd1432a1d5f0b771fe1
BLAKE2b-256 50884c1b9e7665a138cf15deda1a03245666b2796aa9d673883db818d924683c

See more details on using hashes here.

File details

Details for the file pymed-0.8.7-py3-none-any.whl.

File metadata

  • Download URL: pymed-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pymed-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2e1d0cdc2491619668c4c02ca171039996e14abea184dfdc0d7bce6c97d3bda9
MD5 f8fc844935749b4389f01b842267250e
BLAKE2b-256 fc6fe6cd6bf1455bc37ff299cd6a9d14010f7f08b1bbe3cb0328b9e3ee4b6d98

See more details on using hashes here.

Supported by

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