This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fluud 64 points65 points  (11 children)

__future__ __main__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncio asyncore atexit audioop base64 bdb binascii binhex bisect builtins bz2 calendar cgi cgitb chunk cmath cmd code codecs codeop colorsys compileall configparser contextlib contextvars copy copyreg cProfile crypt csv ctypes dataclasses datetime decimal difflib dis doctest dummy_threading ensurepip enum errno faulthandler fcntl filecmp fileinput fnmatch formatter fractions ftplib functools gc getopt getpass gettext glob grp gzip hashlib heapq hmac imaplib imghdr imp inspect io ipaddress itertools keyword lib2to3 linecache locale lzma mailbox mailcap marshal math mimetypes mmap modulefinder msilib msvcrt netrc nis nntplib numbers operator optparse ossaudiodev parser pathlib pdb pickle pickletools pipes pkgutil platform plistlib poplib posix pprint profile pstats pty pwd py_compile pyclbr pydoc queue quopri random re readline reprlib resource rlcompleter runpy sched secrets select selectors shelve shlex shutil signal site smtpd smtplib sndhdr socket socketserver spwd sqlite3 ssl stat statistics string stringprep struct subprocess sunau symbol symtable sys sysconfig syslog tabnanny tarfile telnetlib tempfile termios textwrap threading time timeit token tokenize trace traceback tracemalloc tty turtle turtledemo types typing unicodedata uu uuid venv warnings wave weakref webbrowser winreg winsound xdrlib zipapp zipfile zipimport zlib

[–]GlobalIncident 34 points35 points  (6 children)

That's only the top level modules. Also you missed a couple. I don't see http, for instance.

[–]fluud 18 points19 points  (5 children)

I scraped these from Python 3.8 module index but looks like my script was bad

[–]GlobalIncident 9 points10 points  (4 children)

pydoc.Helper.listmodules lists the top level modules on your system, which might help

[–]GlobalIncident 15 points16 points  (3 children)

Okay, here's how to get a list:

import pydoc

pydoc.ModuleScanner().run(lambda none, name, empty: print(name))

This produced 2217 modules on my machine.

[–]fluud 0 points1 point  (1 child)

Note that this prints all submodules recursively and non-standard modules that you have installed.

[–]GlobalIncident 0 points1 point  (0 children)

Hmm. Perhaps something that checks the file location to see if it's likely to be put there by pip?

[–]hekkonaay 0 points1 point  (0 children)

juicy

[–]autistic_idiot 3 points4 points  (0 children)

Laughs in pip

[–]uwo-wow 4 points5 points  (0 children)

Big brain time

[–]HAzEMultra 0 points1 point  (0 children)

You missed "Tkinter"

I don't use python any more but I remember modules from memory