Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

aganitha-intern-task

# Get Papers List(Aganiths_Intern_task) This project fetches research papers from PubMed based on a query, filters out non-academic authors, and generates a CSV file with relevant details. ## Project Organization ``` project/ ├── get_papers/ │ ├── fetch_papers.py # Module to fetch and filter papers ├── scripts/ │ ├── get_papers_list.py # Command-line program to use the module ├── tests/ # Directory for test cases ├── README.md # Project documentation ├── pyproject.toml # Poetry configuration ├── dist/ # Generated distribution files for publishing ``` ## Installation 1. Clone the repository: ```bash git clone https://github.com/Vighnesh-M-S/Aganitha_Intern_task cd Aganitha_Intern_task 2. Inst

Published10 Jan 2025
Direct dependencies2
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

Get Papers List(Aganiths_Intern_task)

This project fetches research papers from PubMed based on a query, filters out non-academic authors, and generates a CSV file with relevant details.

Project Organization

project/
├── get_papers/
│   ├── fetch_papers.py         # Module to fetch and filter papers
├── scripts/
│   ├── get_papers_list.py      # Command-line program to use the module
├── tests/                      # Directory for test cases
├── README.md                   # Project documentation
├── pyproject.toml              # Poetry configuration
├── dist/                       # Generated distribution files for publishing

Installation

  1. Clone the repository:
    git clone https://github.com/Vighnesh-M-S/Aganitha_Intern_task
    cd Aganitha_Intern_task
    
    
  2. Install dependencies:
    poetry install
    

Usage

  1. Run the command-line program to fetch papers and generate a CSV file:
    poetry run python3 scripts/get_papers_list.py "<search_query>" -f <output_file> -d
    
    

Command-Line Arguments

ArgumentDescriptionExample
querySearch query for PubMed"cancer research"
-f, --fileOutput filename for CSV"output.csv"
-d, --debugEnable debug outputN/A
  1. Example:
    poetry run python3 scripts/get_papers_list.py "cancer treatment" -f results.csv -d
    

Output Format

The generated CSV file will have the following columns:

Column NameDescription
PubmedIDUnique identifier for the paper
TitleTitle of the paper
Publication DateDate the paper was published
Non-academic Author(s)Names of authors affiliated with non-academic institutions
Company Affiliation(s)Names of pharmaceutical/biotech companies
Corresponding Author EmailEmail address of the corresponding author

Tools and Libraries Used

The following tools and libraries are used in this project:

  • Python: The programming language used to develop the script.
  • Poetry: For dependency management and packaging. Link
  • Requests: To fetch data from the PubMed API. Link
  • Pandas: For data manipulation and CSV generation. Link
  • Argparse: For command-line argument parsing. Link

Publishing the Module

The module can be published to Test PyPI using the following steps:

Build the package:

poetry build

Upload to Test PyPI:

twine upload --repository-url https://test.pypi.org/legacy/ dist/*

For more information, refer to the Test PyPI Guide.

Troubleshooting

  • Ensure you have an active internet connection to access the PubMed API.
  • If you encounter authentication issues while uploading to Test PyPI, verify your token and credentials.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
requests<3.0.0,>=2.32.3runtime
pandas
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
pandas<3.0.0,>=2.2.3runtime

Distribution files

2 collected
aganitha_intern_task-0.1.0-py3-none-any.whl

bdist_wheel · 3.89 KB · Python py3

Source file
aganitha_intern_task-0.1.0.tar.gz

sdist · 3.79 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c41f05a3712275453bf4b0fcb35526f92bf2887f3f5ac5c3b3aefa8fbffdf78e

Other collected versions

View all collected versions →