Skip to main content

PyMedX is a tool set for handling multimedia files.

Project description

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

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

pymedx-0.2.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

pymedx-0.2.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pymedx-0.2.1.tar.gz.

File metadata

  • Download URL: pymedx-0.2.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure

File hashes

Hashes for pymedx-0.2.1.tar.gz
Algorithm Hash digest
SHA256 578d73a085287c1e26e5cf051d4274b27142437b41cc359fd2ccec43a9f1f9f8
MD5 2b9c21017f7e3ee0fa1c34c2554a411b
BLAKE2b-256 34bd5781787ef0672c14bdc1232e8de6420069bbd2190e12e2be16e8a86cd5fd

See more details on using hashes here.

Provenance

File details

Details for the file pymedx-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pymedx-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure

File hashes

Hashes for pymedx-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0bdfa1b9636a04b4927d25d1fd75d96b31f58063f886f79e6cfd82e0da9bd7d
MD5 5dbba1a06b813493499b7b635152e53b
BLAKE2b-256 530ffe8e1d15a5e8159ff6506cc7f98692c745c45e56e2f6c881a023d4e320d7

See more details on using hashes here.

Provenance

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