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.3.tar.gz (3.7 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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pubmed_package-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 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.3.tar.gz
Algorithm Hash digest
SHA256 1c2a0b9a74b6b0f9338e92964ba92ec3c13fcfe73adac8f2c5897fdbe3e2a3ca
MD5 45e65c8cb4494dcd3e8c738f58938b10
BLAKE2b-256 9c60c3461c6c5eeb858921b6b8d1b081e3aa123381e1b4b6ec6c38c0176261be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pubmed_package-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d13185eed07725d3bcccd186783602b88dcb84b46a8c0e58f864c9e1c9291b
MD5 6abb7f8dad759a752e1e78840f02282f
BLAKE2b-256 cea6f8e1e7db30de76c74f7d2e1af7a472a69eb37da6c47340e0c64976999623

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