Python Forum
pip list available packages
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip list available packages
#1
how does pip manage packages?

when i run "pip list" it shows many packages that i installed with Ubuntu's apt-get under the names i presume would be used to install them with pip.

how can i get pip (pip3) to list packages available for installing?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
you might find something useful here: https://www.python.org/dev/peps/pep-0301/

I don't believe python has a method for retrieving all packages, which would make sense
for use within a program.

you can get an html list, with links using this url:
https://pypi.python.org/simple/

if you put these into a list, and the results of 'pip list' in another making sure the (name) format is the same,
then use:
print(set(list1)^set(list2))
to find the differences
Reply
#3
Quote:how can i get pip (pip3) to list packages available for installing?
i dont think pip has such an option because the output be would nearly a quarter of a million packages long. And thats just the name of the package. The best option is to look at pypi as described above.

Usually people dont just install packages at random, but install a package after reading about it. And that it might simplify a task they need to accomplish.
Recommended Tutorials:
Reply
#4
pip search do a a keyword search on PyPi.
C:\all_flask
λ pip search poker
poker-program-demo (0.1.0)    - play poker; my first python project to learn
deuces (0.2)                  - Deuces: A pure Python poker hand evaluation
                                library
eval7 (0.1.2)                 - A poker hand evaluation and equity calculation
                                library
helga-pointing-poker (1.0.0)  - Pointing poker for helga
HoleCardHandicapper (1.2.1)   - NeuralNet for poker hands evaluation
mental (0.2.0)                - Mental poker implementation
minipoker (0.0.3)             - Poker Game
ploev (0.2.0)                 - Python library for ProPokerTools Odds Oracle
poker (0.22.2)                - Poker Framework
PokerCards (0.1.1)            - Python module for working with poker cards and
                                managing games.
pokercore (0.1.4)             - A poker engine core, in Python
pokereval (0.1.2)             - A pure python poker hand evaluator for 5, 6, 7
                                cards
pokershell (0.1.5)            - Poker Shell - Texas hold 'em command line
                                calculator and simulator
PokerSleuth (2.1.0.47)        - A wrapper for the Poker Sleuth Scriptable
                                Equity Calculator
pokyr (0.1.2)                 - Poker hand evaluating modules that provide
                                fast enumerations.Both C Extension module it's
                                pure python analogies are included.
pypoker (0.0.2a)              - Poker hand evaluation
PyPokerEngine (1.0.1)         - Poker engine for poker AI development in
                                Python
PyPokerGUI (0.0.7)            - GUI application for PyPokerEngine
SONNYGAMES (1.3)              - ROYALE HOLDEM  POKER LIVE
Can also mix grep for more exact search.
C:\all_flask
λ pip search psycopg | grep "^psycopg\ "
psycopg (1.1.21)                               - Python-PostgreSQL Database Adapter
pip list  only make sense for my in virtual environment,because all the mess i have installed in OS Python make no sense Undecided
Using pipenv with pipenv graph,give a better picture than pip list.
Reply
#5
Well, one option is to iterate over all the letters from string.ascii_lower and invoke pip search letter* on each
I just tried it with a* and it works

Hm! Doesn't work well Angry

Here it is. You can scrap it and get JSON for each link. The format is: http://pypi.python.org/pypi/<package_name>/json

This is what I've got for an random one.

Output:
{ "info": { "maintainer": "", "docs_url": null, "requires_python": null, "maintainer_email": "", "cheesecake_code_kwalitee_id": null, "keywords": "", "package_url": "http://pypi.python.org/pypi/aiouv", "author": "Sa\u00fal Ibarra Corretg\u00e9", "author_email": "[email protected]", "download_url": "UNKNOWN", "platform": "POSIX,Microsoft Windows", "version": "0.0.1", "cheesecake_documentation_id": null, "_pypi_hidden": false, "description": "", "release_url": "http://pypi.python.org/pypi/aiouv/0.0.1", "downloads": { "last_month": 0, "last_week": 0, "last_day": 0 }, "_pypi_ordering": 0, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "bugtrack_url": "", "name": "aiouv", "license": "UNKNOWN", "summary": "libuv based event loop for asyncio", "home_page": "http://github.com/saghul/aiouv", "cheesecake_installability_id": null }, "releases": { "0.0.1": }, "urls": }
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#6
This will give you a complete list, all 120353 packages.
https://pypi.python.org/simple/
Reply
#7
I've found it first Tongue  I am curious what is the summarized size of all packages. Installed.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#8
pip show?
Reply
#9
(Oct-27-2017, 08:45 PM)Larz60+ Wrote: This will give you a complete list, all 120353 packages.
https://pypi.python.org/simple/

i got 120355 packages.  either my parsing was different or there has been a net gain of 2 packages since you counted.  there are a lot of names i suspect are not real packages.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#10
the count I gave comes from: https://pypi.python.org/pypi
Don't know how this is updated.
The list that you get contains the links, so they could be checked, but be careful
although there is a attempt to keep it clean, there's bound to be some bad actors in
the batch. Usually with spellings very nearly correct, but hoping for typo's to suck
you in. see: https://arstechnica.com/information-tech...epository/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  to get a list of pip packages that were installed Skaperen 12 3,090 Jun-25-2022, 11:38 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020