Get information about packages from PyPI. This was inspired from a project suggestion by u/appinv in the r/Python project ideas megathread with a little hint of my own boredom to back it up.
cd pip-search
pip install -r requirements.txt
import pipsearch
# initialize the PyPI class
pypi = pipsearch.PyPI()
# get a specific package
package = pypi.search('requests')
# output the package data
print(package.name) # requests
print(package.pip_command) # pip install requests
print(package.summary) # Python HTTP for Humans.
# get a random package
package = pypi.random()
- Add more information to return about the packages
- Add Github repository data
- Add more search queries to get more packages
- Add command-line arguments