Package: whatsonpypi
whatsonpypiCLI tool to get package info from PyPI and/or manipulate requirements.Installation$pipinstall-UwhatsonpypiRequirementsPython 3.7+FeaturesFind information on a package on PyPIExamples:$whatsonpypidjangoNAMEDjangoLATESTVERSION2.1.5SUMMARYAhigh-levelPythonWebframeworkthatencouragesrapiddevelopmentandclean,pragmaticdesign.PACKAGEURLhttps://pypi.org/project/Django/AUTHORDjangoSoftwareFoundationLATESTRELEASES2.2a1,2.1rc1,2.1b1,2.1a1,2.1.5For more information..Examples:$whatsonpypidjango--more...Version specific information..Examples:$whatsonpypidjango==2.1.4--more...Launch documentation URL of project in a browser tabExamples:$whatsonpypidjango--docsAdd packages to your requirements files.Examples:$whatsonpypidjango--addBy default, it searches for files with names matchingrequirements*.txtin the current working directory and adds the dependency to the end of the
file.You can change the filename pattern to search for. The pattern may contain simple
shell-style wildcards.$whatsonpypidjango--add--req-pattern"*.txt"If there’s more than one file, you will see a prompt allowing you to select the files
that should be modified.If you want the dependency to be added to a specific line,
mention a comment#woppon its own line, which will be replaced with the dependency:Example:Do this in your requirements.txt:# Djangodjango==2.1.5# testingpytest==4.1.1#woppThen running this:$whatsonpypipytest-runner--addwill produce this:# Djangodjango==2.1.5# testingpytest==4.1.1pytest-runner==4.2Use requirements specifications as needed.==,>=,<=or~=using--ee,--ge,--leor--te. Default is--ee:$whatsonpypipytest-runner--add--gewill produce this:# Djangodjango==2.1.5# testingpytest==4.1.1pytest-runner>=4.2Existing dependencies will be replaced with newer versions. Dependency version
by default is the latest unless specified explicitly like:$whatsonpypipytest-runner==4.1--addNote that you may have you to double quote it in order to prevent Bash from parsing it.$whatsonpypi"pytest-runner>=4.1"--addOptionally, directory to search for requirement files can be specified with--req-dir.
Both absolute and relative paths are allowed. Must be a directory.$whatsonpypipytest-runner==4.1--add--req-dir/Users/Me/Documents/GitHub/project/requirementsDefault value (if not provided) is the directory where the command is run (cwd).Also, optionally, you can specify comments to add before a dependency.
Note that the comment will not be added if the dependency already exists in the file.For example, running this:$whatsonpypipytest-runner--add--comment'testing'will add this:# testingpytest-runner==4.2See all options with:$whatsonpypi--helpCreditsCookiecutterand theaudreyr/cookiecutter-pypackageproject template for getting me started.History0.3.7 (2023-01-11)add -o/–page to open PyPI page0.3.6 (2023-01-11)fix None values from PyPI API0.3.5 (2023-01-10)remove debug logs0.3.4 (2023-01-09)fix null pointers0.3.3 (2023-01-08)make versions flexible0.3.2 (2023-01-07)Fix version and spec parsing0.3.1 (2023-01-07)add –le, –ge, –ee, –te for requirements0.3.0 (2023-01-06)dropped Python2 support. Requires 3.7+ now.0.2.8 (2019-02-13)more py2 fixesuse utf-8 while opening files0.2.7 (2019-02-12)fix for py2 ImportError0.2.6 (2019-02-06)fix absence of new lines0.2.5 (2019-02-05)fix requirements file format check0.2.4 (2019-01-29)add –comment to allow mentioning comments with –add0.2.3 (2019-01-26)add –req-pattern to allow specifying search pattern for requirements filesraise Error when no requirements files are found0.2.2 (2019-01-23)Fix empty dependencies display0.2.1 (2019-01-23)Small fixes0.2.0 (2019-01-22)Add -a/–add to enable adding packages to requirement files.Added -d/–docs to launch docs URL in browserAllow version specific querying0.1.2 (2019-01-20)Display more package infoadded –more/-m for even more info0.1.1 (2019-01-02)First release on PyPI.