pipsearch icon indicating copy to clipboard operation
pipsearch copied to clipboard

Adding support of search

Open biggydbs opened this issue 7 years ago • 7 comments

biggydbs avatar Oct 04 '17 20:10 biggydbs

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 avatar Oct 04 '17 20:10 biggydbs

@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.

shubhodeep9 avatar Oct 04 '17 20:10 shubhodeep9

Okay got it.

biggydbs avatar Oct 04 '17 20:10 biggydbs

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

biggydbs avatar Oct 04 '17 21:10 biggydbs

  1. I can't seem to make it work.
  2. 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.
  3. Don't create repositories in PyPi just for testing, for the projects that are authored by someone else. That is an unfair practice.

shubhodeep9 avatar Oct 05 '17 06:10 shubhodeep9

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 avatar Oct 05 '17 06:10 biggydbs

@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.

shubhodeep9 avatar Oct 05 '17 07:10 shubhodeep9