Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ubuntu packages in pip
#1
for a new server running Ubuntu 16.04 LTS i am going through a big list of packages to see what i want to install. if a python package is also in pip, i would prefer to install it via pip. i am wondering if the names are the same or similar (such as remove "python-" from the Ubuntu page name) or if any are radically different. as i go through each name i want to know if it is in pip's repository. i'm building the lists of what to install. this will be transferred to the server later, for actual install, then. how can i tell if a given name is also available via pip. is pip search with that name always going to work?
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 could write a script to list all the python-* packages and do the pip search for you. You could even do this with the python-apt package, the python API to the apt system.
Reply
#3
i forgot the solution to making pip list all its packages in one command. can i do regex?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Did you try pip list without arguments? If you want all the packages in pypi, I found this url https://pypi.org/simple/
Reply
#5
i wanted all of the packages in pypi. but i thought someone figured out an option or key for pip search command to make it list them all. i wanted the one-line description with each one. but if going to a web site, i should get the full description for my troubles.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#6
I could get information in json format about a package (request in this example) by using https://pypi.org/pypi/request/json
Reply
#7
firefox formatted the JSON for me. but i don't see a description. i'd like to get ALL packages in one listing.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#8
You have to do some web scrapping on https://pypi.org/simple/ and take all packages names and GET https://pypi.org/pypi/ package_name /json for each.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#9
i want to do only one HTTP(S) request, not 138622 of them.
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
You want one json file for all of them? I doubt that there is one somewhere. The packages info is constantly changing.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Forum Jump:

User Panel Messages

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