python-inspector icon indicating copy to clipboard operation
python-inspector copied to clipboard

Add option to get resolved packages in a requirements.txt file

Open TG1999 opened this issue 1 year ago • 4 comments

TG1999 avatar Jun 15 '23 16:06 TG1999

Hi @TG1999 ,

I would like to work in this issue. After using the tool, as far as I have understood, the output json has an "is_resolved" key that is true for some packages and false for some (see screenshots below). image image

I think what needs to be done is to select the packages which has "is_resolved" true and write them into a requirements.txt file.

Is this what you intended in this issue?

Please let me know. Thanks.

arijitde92 avatar Jul 21 '23 06:07 arijitde92

@arijitde92 Thanks!

re:

I think what needs to be done is to select the packages which has "is_resolved" true and write them into a requirements.txt file.

that's it!

pombredanne avatar Jul 21 '23 17:07 pombredanne

Now to write requirement files, you may want to look into the pip-requirements-parser as is should have a way to write things out.

pombredanne avatar Jul 21 '23 17:07 pombredanne

Ok. I am working on it.

Now to write requirement files, you may want to look into the pip-requirements-parser as is should have a way to write things out.

arijitde92 avatar Jul 22 '23 16:07 arijitde92