Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip search #1

Closed
pradyunsg opened this issue May 14, 2017 · 4 comments
Closed

pip search #1

pradyunsg opened this issue May 14, 2017 · 4 comments

Comments

@pradyunsg
Copy link

Hey!

What does this library do differently from actually running pip search?

@shubhodeep9
Copy link
Owner

Well as you know, pip search is a bash tool, but this is just small python library, that could be used for any program.
Usage:
import pipsearch
print (pipsearch.search('package-term'))
Future scope: to integrate it with separate application, that generates setup files.

@pradyunsg
Copy link
Author

I meant, is the information provided different? If so - how?

this is just small python library, that could be used for any program.

Or you can get the output of running pip search and parse it. (:

Future scope: to integrate it with separate application, that generates setup files.

Interesting... :P

@shubhodeep9
Copy link
Owner

It parses through pypa search results. That gives output according to the weight of the searched term.

Upon comparison, both results are different. Still I don't know on what basis does pip search provide results.

@pradyunsg
Copy link
Author

pradyunsg commented May 14, 2017

FWIW, pip search uses the search method on PyPI's XML-RPC. More here.

Maybe you can use that? Idk. Got a paper tomorrow. BBye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants