bndr / bndr/pipreqs

Can't tell which file pipreqs is getting its packages from

Open
#448 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

I have a large project and `pipreqs` seems to be generating too many packages. I want to know which Python file is resulting in which packages to be found by `pipreqs`. I tried doing file by file, but apparently `pipreqs` doesn't support a single file for input either, just entire directories.

There should be a way to see which exact Python file yielded which required packages.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how pipreqs accepts a directory and discovers imports across its Python files. Define an output that maps each source file to the packages it contributes, then verify it on a project where the generated requirements currently include unexpected packages.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.