aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
python |
public |
2020-12-24 07:29:05 -0800 |
2020-12-24 07:29:05 -0800 |
false |
20201224152905 |
false |
false |
|
List Functions in a Python Module |
tech-note |
Substitute colorama
with the name of a module.
>>> import colorama
>>> dir(colorama)
['AnsiToWin32', 'Back', 'Cursor', 'Fore', 'Style', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', 'ansi', 'ansitowin32', 'colorama_text', 'deinit', 'init', 'initialise', 'reinit', 'win32', 'winterm']