Skip to content

Instantly share code, notes, and snippets.

@knuu
Last active July 10, 2023 03:28
Show Gist options
  • Save knuu/b25d0d0175a3df508d9f894c1b339849 to your computer and use it in GitHub Desktop.
Save knuu/b25d0d0175a3df508d9f894c1b339849 to your computer and use it in GitHub Desktop.
Code Interpreter に含まれる module
# 実行されたコード
import pkgutil
# List all available modules
available_modules = [module.name for module in pkgutil.iter_modules()]
available_modules
# 入力した prompt
import pkgutil
for module in pkgutil.iter_modules():
print(module.name, end=",")
# 出力
['__future__',
'_bootlocale',
'_collections_abc',
'_compat_pickle',
'_compression',
'_dummy_thread',
'_markupbase',
'_osx_support',
'_py_abc',
'_pydecimal',
'_pyio',
'_sitebuiltins',
'_strptime',
'_sysconfigdata__linux_x86_64-linux-gnu',
'_sysconfigdata__x86_64-linux-gnu',
'_threading_local',
'_weakrefset',
'abc',
'aifc',
'antigravity',
'argparse',
'ast',
'asynchat',
'asyncio',
'asyncore',
'base64',
'bdb',
'binhex',
'bisect',
'bz2',
'cProfile',
'calendar',
'cgi',
'cgitb',
'chunk',
'cmd',
'code',
'codecs',
'codeop',
'collections',
'colorsys',
'compileall',
'concurrent',
'configparser',
'contextlib',
'contextvars',
'copy',
'copyreg',
'crypt',
'csv',
'ctypes',
'curses',
'dataclasses',
'datetime',
'dbm',
'decimal',
'difflib',
'dis',
'distutils',
'doctest',
'dummy_threading',
'email',
'encodings',
'enum',
'filecmp',
'fileinput',
'fnmatch',
'formatter',
'fractions',
'ftplib',
'functools',
'genericpath',
'getopt',
'getpass',
'gettext',
'glob',
'gzip',
'hashlib',
'heapq',
'hmac',
'html',
'http',
'imaplib',
'imghdr',
'imp',
'importlib',
'inspect',
'io',
'ipaddress',
'json',
'keyword',
'lib2to3',
'linecache',
'locale',
'logging',
'lzma',
'mailbox',
'mailcap',
'mimetypes',
'modulefinder',
'multiprocessing',
'netrc',
'nntplib',
'ntpath',
'nturl2path',
'numbers',
'opcode',
'operator',
'optparse',
'os',
'pathlib',
'pdb',
'pickle',
'pickletools',
'pipes',
'pkgutil',
'platform',
'plistlib',
'poplib',
'posixpath',
'pprint',
'profile',
'pstats',
'pty',
'py_compile',
'pyclbr',
'pydoc',
'pydoc_data',
'queue',
'quopri',
'random',
're',
'reprlib',
'rlcompleter',
'runpy',
'sched',
'secrets',
'selectors',
'shelve',
'shlex',
'shutil',
'signal',
'site',
'sitecustomize',
'smtpd',
'smtplib',
'sndhdr',
'socket',
'socketserver',
'sqlite3',
'sre_compile',
'sre_constants',
'sre_parse',
'ssl',
'stat',
'statistics',
'string',
'stringprep',
'struct',
'subprocess',
'sunau',
'symbol',
'symtable',
'sysconfig',
'tabnanny',
'tarfile',
'telnetlib',
'tempfile',
'test',
'textwrap',
'this',
'threading',
'timeit',
'token',
'tokenize',
'trace',
'traceback',
'tracemalloc',
'tty',
'turtle',
'types',
'typing',
'unittest',
'urllib',
'uu',
'uuid',
'venv',
'warnings',
'wave',
'weakref',
'webbrowser',
'wsgiref',
'xdrlib',
'xml',
'xmlrpc',
'zipapp',
'zipfile',
'zipimport',
'_asyncio',
'_bz2',
'_codecs_cn',
'_codecs_hk',
'_codecs_iso2022',
'_codecs_jp',
'_codecs_kr',
'_codecs_tw',
'_contextvars',
'_crypt',
'_ctypes',
'_ctypes_test',
'_curses',
'_curses_panel',
'_dbm',
'_decimal',
'_hashlib',
'_json',
'_lsprof',
'_lzma',
'_multibytecodec',
'_multiprocessing',
'_opcode',
'_posixshmem',
'_queue',
'_sqlite3',
'_ssl',
'_testbuffer',
'_testcapi',
'_testimportmultiple',
'_testinternalcapi',
'_testmultiphase',
'_uuid',
'_xxsubinterpreters',
'_xxtestfuzz',
'audioop',
'mmap',
'nis',
'ossaudiodev',
'parser',
'readline',
'resource',
'termios',
'xxlimited',
'Crypto',
'IPython',
'PIL',
'PyPDF2',
'_argon2_cffi_bindings',
'_brotli',
'_cffi_backend',
'_dlib_pybind11',
'_geoslib',
'_plotly_future_',
'_plotly_utils',
'_pytest',
'_soundfile',
'_yaml',
'absl',
'affine',
'aiohttp',
'aiosignal',
'analytics',
'anyio',
'anytree',
'argcomplete',
'argon2',
'arviz',
'asttokens',
'async_timeout',
'attr',
'attrs',
'audioread',
'babel',
'backcall',
'backoff',
'backports',
'bcrypt',
'bin',
'bleach',
'blinker',
'blis',
'bokeh',
'branca',
'brotli',
'bs4',
'cachetools',
'caffe2',
'cairocffi',
'cairosvg',
'camelot',
'catalogue',
'cffi',
'chardet',
'charset_normalizer',
'click',
'click_plugins',
'cligj',
'cloudpickle',
'cmudict',
'comm',
'compressed_rtf',
'countryinfo',
'cryptography',
'cssselect2',
'cv2',
'cycler',
'cymem',
'dateutil',
'debugpy',
'decorator',
'defusedxml',
'deprecat',
'dill',
'dlib',
'dns',
'docx',
'docx2txt',
'dot_parser',
'dotenv',
'ebcdic',
'ebooklib',
'einops',
'email_validator',
'entrypoints',
'et_xmlfile',
'exceptiongroup',
'exchange_calendars',
'executing',
'extract_msg',
'faker',
'fastapi',
'fastjsonschema',
'fastprogress',
'ffmpeg',
'ffmpy',
'filelock',
'fiona',
'fitz',
'flask',
'flask_cachebuster',
'flask_cors',
'flask_login',
'folium',
'fontTools',
'fpdf',
'frozenlist',
'future',
'fuzzywuzzy',
'gensim',
'geographiclib',
'geopandas',
'geopy',
'gradio',
'graphviz',
'gtts',
'h11',
'h2',
'h5netcdf',
'h5py',
'hpack',
'html5lib',
'httpcore',
'httptools',
'httpx',
'hypercorn',
'hyperframe',
'imageio',
'imageio_ffmpeg',
'imapclient',
'imgkit',
'importlib_metadata',
'importlib_resources',
'iniconfig',
'ipykernel',
'ipykernel_launcher',
'ipython_genutils',
'isodate',
'isympy',
'itsdangerous',
'jax',
'jedi',
'jinja2',
'joblib',
'json5',
'jsonpickle',
'jsonschema',
'jsonschema_specifications',
'jupyter',
'jupyter_client',
'jupyter_core',
'jupyter_server',
'jupyterlab',
'jupyterlab_plotly',
'jupyterlab_pygments',
'jupyterlab_server',
'keras',
'kerykeion',
'kiwisolver',
'korean_lunar_calendar',
'libfuturize',
'libpasteurize',
'librosa',
'llvmlite',
'loguru',
'lxml',
'markdown2',
'markdownify',
'markupsafe',
'matplotlib',
'matplotlib_inline',
'matplotlib_venn',
'mistune',
'mizani',
'mne',
'monotonic',
'moviepy',
'mpmath',
'mtcnn',
'multidict',
'multipart',
'munch',
'murmurhash',
'mutagen',
'nacl',
'nashpy',
'nbclassic',
'nbclient',
'nbconvert',
'nbformat',
'nest_asyncio',
'networkx',
'nltk',
'notebook',
'notebook_shim',
'numba',
'numexpr',
'numpy',
'numpy_financial',
'odf',
'olefile',
'openpyxl',
'opt_einsum',
'orjson',
'packaging',
'pandas',
'pandocfilters',
'paramiko',
'parso',
'past',
'pathy',
'patsy',
'pdf2image',
'pdfkit',
'pdfminer',
'pdfplumber',
'pdfrw',
'pexpect',
'pickleshare',
'pkgutil_resolve_name',
'platformdirs',
'plotly',
'plotlywidget',
'plotnine',
'pluggy',
'pooch',
'pptx',
'preshed',
'priority',
'proglog',
'prometheus_client',
'prompt_toolkit',
'pronouncing',
'psutil',
'ptyprocess',
'pure_eval',
'py',
'pycountry',
'pycparser',
'pydantic',
'pydot',
'pydub',
'pydyf',
'pygments',
'pygraphviz',
'pylab',
'pylog',
'pyluach',
'pymc3',
'pypandoc',
'pyparsing',
'pyphen',
'pyproj',
'pyprover',
'pytesseract',
'pytest',
'pyth',
'pyttsx3',
'pytz',
'pywt',
'pyxlsb',
'pyzbar',
'qrcode',
'rarfile',
'rasterio',
'rdflib',
'referencing',
'regex',
'reportlab',
'requests',
'resampy',
'rpds',
'scipy',
'seaborn',
'semver',
'send2trash',
'sentencepiece',
'shap',
'shapefile',
'shapely',
'skimage',
'sklearn',
'slicer',
'smart_open',
'sniffio',
'snuggs',
'sortedcontainers',
'soundfile',
'soupsieve',
'spacy',
'spacy_legacy',
'speech_recognition',
'srsly',
'stack_data',
'starlette',
'statsmodels',
'svglib',
'svgwrite',
'swisseph',
'sympy',
'tables',
'tabula',
'tabulate',
'tenacity',
'terminado',
'tests',
'text_unidecode',
'textblob',
'textract',
'theano',
'thinc',
'threadpoolctl',
'tifffile',
'tinycss2',
'tlz',
'toml',
'tomli',
'toolz',
'torch',
'torchaudio',
'torchtext',
'torchvision',
'tornado',
'tqdm',
'traitlets',
'trimesh',
'typer',
'typing_extensions',
'tzlocal',
'ujson',
'uvicorn',
'uvloop',
'wand',
'wasabi',
'watchfiles',
'wcwidth',
'weasyprint',
'webencodings',
'websocket',
'websockets',
'werkzeug',
'wordcloud',
'wrapt',
'wsproto',
'xarray',
'xarray_einstats',
'xgboost',
'xlrd',
'xlsxwriter',
'xml_python',
'yaml',
'yarl',
'zipp',
'zmq',
'zopfli',
'_dbus_bindings',
'_dbus_glib_bindings',
'_portaudio',
'apt',
'apt_inst',
'apt_pkg',
'aptsources',
'certifi',
'dbus',
'distro_info',
'easy_install',
'gi',
'idna',
'lsb_release',
'pip',
'pkg_resources',
'pyaudio',
'pygtkcompat',
'requests_unixsocket',
'setuptools',
'six',
'softwareproperties',
'urllib3',
'wheel']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment