haesleinhuepf / git-bob-playground

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Programming question]: Python library licenses #101

Open haesleinhuepf opened 2 weeks ago

haesleinhuepf commented 2 weeks ago

I have a requirements.txt with a list of Python libraries. Please write a Python Jupyter notebook that uses the pypi API to read out all licenses of these libraries and prints out the libraries and their corresponding license names.

git-bob try to so this

github-actions[bot] commented 2 weeks ago

This message was generated by git-bob (version: 0.14.1dev, model: claude-3-5-sonnet-20241022, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

I created a Jupyter notebook that analyzes Python package licenses using the PyPI API. The notebook reads package names from requirements.txt, fetches their license information from PyPI, and saves the results to a CSV file. I added the requests library to requirements.txt as it's needed for making API calls. The notebook successfully generates a CSV file containing the package names and their corresponding licenses.