how to list all available modules to import
how to list all available modules to import
What's the command, to run on serial console, to list all the available modules that can be imported?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: how to list all available modules to import
help('modules')
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: how to list all available modules to import
pythoncoder wrote:help('modules')
That gives me this:
Code: Select all
>>> help('modules')
object modules is of type str
decode -- <function>
encode -- <function>
find -- <function>
rfind -- <function>
index -- <function>
rindex -- <function>
join -- <function>
split -- <function>
rsplit -- <function>
startswith -- <function>
endswith -- <function>
strip -- <function>
lstrip -- <function>
rstrip -- <function>
format -- <function>
replace -- <function>
count -- <function>
lower -- <function>
upper -- <function>
isspace -- <function>
isalpha -- <function>
isdigit -- <function>
isupper -- <function>
islower -- <function>
Re: how to list all available modules to import
Then you might be using a port on WiPy or LoPy. With the micropython.org ports for Pyboard, ESP8266 and ESP32 help("modules") indeed shows a lits of modules.