Skip to main content

No project description provided

Project description

PubMed Research Papers CLI Tool

This repository contains a Python CLI tool to fetch research papers from PubMed, identify non-academic authors based on affiliations, and save the results in a CSV file.

Features

  • Fetch Papers: Retrieve papers using the PubMed API.
  • Filter Non-Academic Authors: Identify authors affiliated with non-academic institutions.
  • Command-Line Options: Flexibility to specify queries, debug mode, and output file.
  • CSV Output: Save the results in a structured CSV format.

Requirements

  • Python 3.8+

Install package with:

pip install pubmed_package

Usage

Run the tool from the command line:

pubmed_api "<query>" [-d] [-f <output_file>]

Arguments

  • <query>: The search query to use with PubMed.
  • -d, --debug: Enable debug mode for detailed logs.
  • -f, --file <output_file>: Specify the filename to save results as CSV. If not provided, results will be printed to the console.

Example

Fetch papers related to "breast cancer" and save them to results.csv:

pubmed_api "breast cancer" -f results.csv

Enable debug mode to see detailed execution logs:

pubmed_api "breast cancer" -d

File Structure

  • pubmed.py: Main script containing the CLI tool.
  • PubMed_CLI_Tool.ipynb: Jupyter Notebook version of the script for interactive use.

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

pubmed_package-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

pubmed_package-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pubmed_package-0.1.2.tar.gz.

File metadata

  • Download URL: pubmed_package-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for pubmed_package-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3c08683df638a77ee26437532cc49090f38a3c552b89d3854eebf6492b479384
MD5 45048ca9abeb758b15cb87981056a5c1
BLAKE2b-256 45d6fe99257bfd0787846e95fe9cf16494ccbf2e0f0c26f6f482d9e5afa94325

See more details on using hashes here.

File details

Details for the file pubmed_package-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pubmed_package-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for pubmed_package-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 957e2abc1298e6dc3ac7eb57ccb7140cdc085138f39e524117315e3c20e0eaac
MD5 d74174707a5bed29c7d080cb4af41496
BLAKE2b-256 fd3c73e4fa37198befd45157a9231a9559ca28e65a1730ce5caf965e83a1546e

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