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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pubmed_package-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f7d480faaa34c51bd064828c41a3290b04f87be5325b37e45a83b0c6794e71a6
MD5 bfdf89ae2b68c2bf86e3ca258a8caf5e
BLAKE2b-256 fb7b0eeb2f752803040858286c8994a118a1dd2eb43613fd586624dfdb79fbb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pubmed_package-0.1.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91d115fde40b9801b2feddf8c29c26dc958db563fe69e962029f46ad3a34a41d
MD5 ebe91d34df2ddc0b4d62be79e0af6aad
BLAKE2b-256 f28e744eb9dd8704a411a0eb200c2862e36fbb29a36aba08083f89114a0cdd1f

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