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 "machine learning" 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.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-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pubmed_package-0.1.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.tar.gz
Algorithm Hash digest
SHA256 8f272356e3f2fee295ac479502c4f551cf6560398332d4779ca3fadccea09900
MD5 b34ebde85528ac27a2444c211df5e17a
BLAKE2b-256 3fcd4bddb9cc297136a7aafd063ae478de47ce033eeaf4f86bd0d45b45604242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pubmed_package-0.1-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-py3-none-any.whl
Algorithm Hash digest
SHA256 eac77e7e6790ab90ade1c26281a3299c5bb45fe7a55732b478e5caf0af05dacd
MD5 18824af5339af2fe69b35d55066d6159
BLAKE2b-256 f6078a93e1081caa1cffa4ac2834312820f9aaa974d4dd83443dfd3a4dc19764

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