Skip to content

Commit

Permalink
get stdlib module names
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Aug 27, 2023
1 parent 60e59f6 commit b0c83dc
Showing 1 changed file with 3 additions and 307 deletions.
310 changes: 3 additions & 307 deletions planemo/autopygen/source_file_parsing/constants.py
Original file line number Diff line number Diff line change
@@ -1,309 +1,5 @@
import sys

WARNING_STRING = "##!_FIXME_!##"

STD_LIB_MODULE_NAMES = frozenset(
{
"_json",
"mimetypes",
"_signal",
"_csv",
"pickletools",
"_sre",
"nntplib",
"_codecs_iso2022",
"_ctypes",
"_curses_panel",
"locale",
"pyclbr",
"sre_compile",
"quopri",
"configparser",
"asyncio",
"_winapi",
"fractions",
"gzip",
"ossaudiodev",
"_bootsubprocess",
"_markupbase",
"difflib",
"lib2to3",
"_asyncio",
"queue",
"_sha256",
"tracemalloc",
"posixpath",
"_codecs_jp",
"subprocess",
"html",
"glob",
"types",
"getpass",
"multiprocessing",
"xdrlib",
"__future__",
"os",
"tabnanny",
"ctypes",
"_multibytecodec",
"asyncore",
"zoneinfo",
"_lzma",
"msilib",
"_md5",
"itertools",
"tty",
"binhex",
"pickle",
"_bz2",
"syslog",
"ssl",
"_datetime",
"time",
"dbm",
"tarfile",
"getopt",
"functools",
"tokenize",
"_osx_support",
"contextvars",
"_frozen_importlib",
"nt",
"_warnings",
"_uuid",
"warnings",
"sre_parse",
"spwd",
"gettext",
"colorsys",
"cgi",
"compileall",
"_tkinter",
"cmd",
"_functools",
"graphlib",
"bdb",
"winreg",
"binascii",
"wsgiref",
"_crypt",
"_lsprof",
"runpy",
"linecache",
"_codecs_cn",
"_threading_local",
"re",
"sched",
"struct",
"sys",
"dis",
"typing",
"_io",
"hashlib",
"pydoc_data",
"_socket",
"_ssl",
"ipaddress",
"_hashlib",
"_py_abc",
"bisect",
"builtins",
"importlib",
"select",
"urllib",
"inspect",
"ftplib",
"_posixsubprocess",
"reprlib",
"_symtable",
"platform",
"marshal",
"ensurepip",
"_queue",
"calendar",
"curses",
"socket",
"xml",
"this",
"antigravity",
"cmath",
"csv",
"fcntl",
"_scproxy",
"fileinput",
"_frozen_importlib_external",
"io",
"_ast",
"codecs",
"pathlib",
"_compat_pickle",
"unittest",
"poplib",
"filecmp",
"weakref",
"decimal",
"_sqlite3",
"abc",
"_weakrefset",
"distutils",
"enum",
"heapq",
"errno",
"_codecs_hk",
"imghdr",
"_sha512",
"copy",
"encodings",
"mmap",
"modulefinder",
"smtpd",
"uu",
"zipfile",
"readline",
"textwrap",
"http",
"msvcrt",
"rlcompleter",
"datetime",
"trace",
"_strptime",
"_imp",
"_opcode",
"_compression",
"_struct",
"traceback",
"uuid",
"pwd",
"sre_constants",
"dataclasses",
"base64",
"pprint",
"_string",
"math",
"tempfile",
"selectors",
"pyexpat",
"copyreg",
"keyword",
"termios",
"pkgutil",
"sysconfig",
"_codecs_kr",
"secrets",
"numbers",
"resource",
"aifc",
"genericpath",
"telnetlib",
"winsound",
"_abc",
"_blake2",
"nturl2path",
"zipapp",
"_tracemalloc",
"faulthandler",
"_overlapped",
"chunk",
"gc",
"_elementtree",
"mailbox",
"json",
"symtable",
"_aix_support",
"token",
"contextlib",
"mailcap",
"_decimal",
"stat",
"pstats",
"crypt",
"_multiprocessing",
"string",
"xmlrpc",
"zlib",
"shelve",
"_heapq",
"timeit",
"bz2",
"_operator",
"_locale",
"_contextvars",
"pydoc",
"idlelib",
"posix",
"_dbm",
"email",
"turtledemo",
"concurrent",
"opcode",
"collections",
"profile",
"wave",
"_statistics",
"code",
"codeop",
"pty",
"_posixshmem",
"signal",
"sndhdr",
"asynchat",
"grp",
"fnmatch",
"_collections_abc",
"hmac",
"_codecs_tw",
"_pydecimal",
"_bisect",
"_gdbm",
"_sha3",
"_thread",
"pdb",
"array",
"ntpath",
"_pyio",
"random",
"sqlite3",
"_msi",
"_collections",
"logging",
"optparse",
"sunau",
"turtle",
"doctest",
"shutil",
"unicodedata",
"site",
"cProfile",
"zipimport",
"_sha1",
"webbrowser",
"_stat",
"threading",
"_codecs",
"py_compile",
"netrc",
"imaplib",
"shlex",
"_zoneinfo",
"_sitebuiltins",
"socketserver",
"_pickle",
"atexit",
"statistics",
"stringprep",
"pipes",
"ast",
"cgitb",
"tkinter",
"venv",
"smtplib",
"audioop",
"_random",
"_curses",
"imp",
"plistlib",
"lzma",
"argparse",
"operator",
"_weakref",
"nis",
}
)
STD_LIB_MODULE_NAMES = frozenset(sys.stdlib_module_names)

0 comments on commit b0c83dc

Please sign in to comment.