pipsearch
pipsearch copied to clipboard
Adding support of search
if you are searching pipsearch pygame... no result will come... but you want some result to come related to pygame, if I am not wrong, so I splitted the "term" (input) and then search for each string in input and appending the result in packages.
@biggydbs I think you didn't understand the problem statement.
In simple, the issue #14 states the need for a command link application that can be triggered via
$ pipsearch
and giving arguments as
$ pipsearch pygame
So it will find PyPi for "pygame" which actually returns many values.
Okay got it.
Its working from command Line using " pipsearch --term pygame " Here are some links which will help you push your modules in pypi :
https://kushaldas.in/posts/building-command-line-tools-in-python-with-click.html http://click.pocoo.org/5/setuptools/#setuptools-integration
1 - You need to register to pypi to put your module there. 2 - Create a file .pypirc and put all your username and passwords there 3 - After that run : python setup.py sdist upload -r pypi . pip install --editable .
This I added for testing. https://pypi.python.org/pypi/pipsearch
- I can't seem to make it work.
- I don't understand why you changes the directory structure just to create a binary. You simple could have mentioned endpoints in setup.py, and used
argparse
to manipulate arguments. - Don't create repositories in PyPi just for testing, for the projects that are authored by someone else. That is an unfair practice.
I will delete it, it was just for testing to make it work.As soon as testing is done, I will remove it.
Using click I tested, if you want me to change it to argparse I can do that.
@biggydbs Uploading to PyPi is for later. First construct a setup.py that installs it on our system. For reference: check my repo that has command line interface.