packages discoverer

2021-07-17 Thread jak

Sometimes, wandering around the web, I find some example of python code
that uses some class or function that I don't know and that I would like
to try. I copy the code locally and when I try to run it, I find that
the package containing the class/function is not installed on my pc, so
I go back to the web to search for it with the search engine. The
question is: is there a command or an easy way to find out the name of
the package that contains the class/function of my interest?

Thank you in advance.
--
https://mail.python.org/mailman/listinfo/python-list


Searching pypi.org, is there an 'advanced search'?

2021-07-17 Thread Chris Green
Every time I go to pypi.org to look for a neat utility or something I
curse the stupid search.

Is there really no better search available?  Apart from anything else
it appears to OR the elements together so, for example, I wanted to
search for programs/libraries that will allow me to access Google
Contacts:-

Putting the words Google and Contacts in the search box produces
more than 1 hits.  

Putting just Google in the search box produces 8,629 projects.

So, it would appear the terms are OR'ed together, surely OR'ing terms
in a search (by default) went out with the ark!

When I put 'Google contacts' in the search box I want projects that
have both 'Google' AND 'Contacts' in their description somewhere!
(... and, no, I tried 'Google AND Contacts', still more than 1
results).

pypi.org is a wonderful resource but its size now demands a better
search engine.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Searching pypi.org, is there an 'advanced search'?

2021-07-17 Thread Avi Gross via Python-list
Chris,

Just a bit off topic, but google does have some advanced features such as using 
the word AND or putting something in quotes to make it search for the 
combination written the same way. 

Some of the tricks work for other search engines too. Google does have an 
advanced search feature here:

https://www.google.com/advanced_search

For example you may insist on ALL THESE WORDS for a page to be shown or words 
not to be on the page and more such as only find things on some web site.

Good luck.

I did such a search for having both google and contacts on just pypi.org and 
got only 2050 results! LOL!

https://www.google.com/search?as_q=google+contacts&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=pypi.org&as_occt=any&safe=images&as_filetype=&tbs=




-Original Message-
From: Python-list  On 
Behalf Of Chris Green
Sent: Saturday, July 17, 2021 8:02 AM
To: python-list@python.org
Subject: Searching pypi.org, is there an 'advanced search'?

Every time I go to pypi.org to look for a neat utility or something I curse the 
stupid search.

Is there really no better search available?  Apart from anything else it 
appears to OR the elements together so, for example, I wanted to search for 
programs/libraries that will allow me to access Google
Contacts:-

Putting the words Google and Contacts in the search box produces
more than 1 hits.  

Putting just Google in the search box produces 8,629 projects.

So, it would appear the terms are OR'ed together, surely OR'ing terms in a 
search (by default) went out with the ark!

When I put 'Google contacts' in the search box I want projects that have both 
'Google' AND 'Contacts' in their description somewhere!
(... and, no, I tried 'Google AND Contacts', still more than 1 results).

pypi.org is a wonderful resource but its size now demands a better search 
engine.

--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: packages discoverer

2021-07-17 Thread Cameron Simpson
On 18Jul2021 00:53, jak  wrote:
>Sometimes, wandering around the web, I find some example of python code
>that uses some class or function that I don't know and that I would like
>to try. I copy the code locally and when I try to run it, I find that
>the package containing the class/function is not installed on my pc, so
>I go back to the web to search for it with the search engine. The
>question is: is there a command or an easy way to find out the name of
>the package that contains the class/function of my interest?

Usually a third party package will be in PyPI: https://pypi.org/

If the import line of the unknown function looks like this:

from package_name import function_name

you should be able to search for it there. Or, of course:

python -m pip install --user package_name

to install it in your local Python environment, ready for use.

Cheers,
Cameron Simpson 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Searching pypi.org, is there an 'advanced search'?

2021-07-17 Thread MRAB

On 2021-07-17 13:01, Chris Green wrote:

Every time I go to pypi.org to look for a neat utility or something I
curse the stupid search.

Is there really no better search available?  Apart from anything else
it appears to OR the elements together so, for example, I wanted to
search for programs/libraries that will allow me to access Google
Contacts:-

 Putting the words Google and Contacts in the search box produces
 more than 1 hits.

 Putting just Google in the search box produces 8,629 projects.

So, it would appear the terms are OR'ed together, surely OR'ing terms
in a search (by default) went out with the ark!

When I put 'Google contacts' in the search box I want projects that
have both 'Google' AND 'Contacts' in their description somewhere!
(... and, no, I tried 'Google AND Contacts', still more than 1
results).

pypi.org is a wonderful resource but its size now demands a better
search engine.


There's always Google. I find that the search terms:

"google contacts" pypi

finds some results.
--
https://mail.python.org/mailman/listinfo/python-list