Nov-28-2018, 11:15 PM
Quote:that's cool but the condition to be met is that we know at first that utils exists...Is there any command such as dir that gives a list of all the methods? It looks that answer is negative.Well, you don't unless someone tells you or you go digging.
You can start by looking at the documentation of top level packages.
For example if you look at requests by itself, you'll see
Output:PACKAGE CONTENTS
__version__
_internal_utils
adapters
api
auth
certs
compat
cookies
exceptions
help
hooks
models
packages
sessions
status_codes
structures
utils
Each of these has separate documents, and utils is listed here.As a habit, when I'm not busy, I browse various packages to see what they contain. There's no way
to know what every one of them is and what it contains.
As of this minute, pypi contains 159,959 packages.