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.
Metadata
Release files for pubmed-package 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pubmed_package-0.1.3.tar.gz | 3.7 kB | Without provenance | Details for pubmed_package-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pubmed_package-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pubmed_package-0.1.3-py3-none-any.whl |
Total release size: 7.9 kB
Release files / pubmed_package-0.1.3.tar.gz
| Download URL | pubmed_package-0.1.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c2a0b9a74b6b0f9338e92964ba92ec3c13fcfe73adac8f2c5897fdbe3e2a3ca
|
|
BLAKE2b-256 checksum How to use checksums |
9c60c3461c6c5eeb858921b6b8d1b081e3aa123381e1b4b6ec6c38c0176261be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.2
|
Release files / pubmed_package-0.1.3-py3-none-any.whl
| Download URL | pubmed_package-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9d13185eed07725d3bcccd186783602b88dcb84b46a8c0e58f864c9e1c9291b
|
|
BLAKE2b-256 checksum How to use checksums |
cea6f8e1e7db30de76c74f7d2e1af7a472a69eb37da6c47340e0c64976999623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.2
|
Security for pubmed-package 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.