{"id":2353,"date":"2023-04-30T15:08:40","date_gmt":"2023-04-30T15:08:40","guid":{"rendered":"https:\/\/reddogfun.com\/?p=2353"},"modified":"2023-04-30T15:08:43","modified_gmt":"2023-04-30T15:08:43","slug":"python-how-to-list-of-standard-modules-included-with-python","status":"publish","type":"post","link":"https:\/\/reddogfun.com\/index.php\/2023\/04\/30\/python-how-to-list-of-standard-modules-included-with-python\/","title":{"rendered":"Python How To: List of standard modules included with Python"},"content":{"rendered":"\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Here&#8217;s a list of the standard Python modules that are included with Python:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>abc<\/code>: Abstract Base Classes<\/li>\n\n\n\n<li><code>argparse<\/code>: Command-line Argument Parsing<\/li>\n\n\n\n<li><code>array<\/code>: Efficient arrays of numeric values<\/li>\n\n\n\n<li><code>asyncio<\/code>: Asynchronous I\/O, event loop, coroutines and tasks<\/li>\n\n\n\n<li><code>atexit<\/code>: Exit handlers<\/li>\n\n\n\n<li><code>base64<\/code>: Base16, Base32, Base64, Base85 Data Encodings<\/li>\n\n\n\n<li><code>bisect<\/code>: Array bisection algorithm<\/li>\n\n\n\n<li><code>builtins<\/code>: Built-in objects<\/li>\n\n\n\n<li><code>cProfile<\/code>: Deterministic profiling of Python programs<\/li>\n\n\n\n<li><code>calendar<\/code>: General calendar-related functions<\/li>\n\n\n\n<li><code>cgi<\/code>: Common Gateway Interface support<\/li>\n\n\n\n<li><code>cgitb<\/code>: Traceback manager for CGI scripts<\/li>\n\n\n\n<li><code>chunk<\/code>: Tools for iterating over iterables by chunk<\/li>\n\n\n\n<li><code>cmath<\/code>: Mathematical functions for complex numbers<\/li>\n\n\n\n<li><code>cmd<\/code>: Support for line-oriented command interpreters<\/li>\n\n\n\n<li><code>codecs<\/code>: Codec registry and base classes<\/li>\n\n\n\n<li><code>codeop<\/code>: Compile (possibly incomplete) Python code<\/li>\n\n\n\n<li><code>collections<\/code>: Container datatypes<\/li>\n\n\n\n<li><code>colorsys<\/code>: Conversions between color systems<\/li>\n\n\n\n<li><code>compileall<\/code>: Byte-compile Python source files<\/li>\n\n\n\n<li><code>concurrent<\/code>: Executors for concurrent.futures<\/li>\n\n\n\n<li><code>configparser<\/code>: Configuration file parser<\/li>\n\n\n\n<li><code>contextlib<\/code>: Utilities for with-statement contexts<\/li>\n\n\n\n<li><code>contextvars<\/code>: Context Variables<\/li>\n\n\n\n<li><code>copy<\/code>: Shallow and deep copy operations<\/li>\n\n\n\n<li><code>copyreg<\/code>: Register pickle support functions<\/li>\n\n\n\n<li><code>crypt<\/code>: Functionality for one-way hashing of data<\/li>\n\n\n\n<li><code>csv<\/code>: CSV File Reading and Writing<\/li>\n\n\n\n<li><code>ctypes<\/code>: A foreign function library for Python<\/li>\n\n\n\n<li><code>dataclasses<\/code>: Data Classes<\/li>\n\n\n\n<li><code>datetime<\/code>: Basic date and time types<\/li>\n\n\n\n<li><code>decimal<\/code>: Decimal fixed point and floating point arithmetic<\/li>\n\n\n\n<li><code>difflib<\/code>: Helpers for computing deltas<\/li>\n\n\n\n<li><code>dis<\/code>: Disassembler for Python bytecode<\/li>\n\n\n\n<li><code>distutils<\/code>: Building and installing Python modules<\/li>\n\n\n\n<li><code>doctest<\/code>: Test interactive Python examples<\/li>\n\n\n\n<li><code>email<\/code>: Package supporting the parsing, manipulation, and generating of email messages<\/li>\n\n\n\n<li><code>encodings<\/code>: Encoding and decoding of strings<\/li>\n\n\n\n<li><code>enum<\/code>: Support for enumerations<\/li>\n\n\n\n<li><code>errno<\/code>: Standard errno system symbols<\/li>\n\n\n\n<li><code>faulthandler<\/code>: Dump the Python traceback<\/li>\n\n\n\n<li><code>fcntl<\/code>: The fcntl and ioctl system calls<\/li>\n\n\n\n<li><code>filecmp<\/code>: File and Directory Comparisons<\/li>\n\n\n\n<li><code>fileinput<\/code>: Iterate over lines from multiple input streams<\/li>\n\n\n\n<li><code>fnmatch<\/code>: Unix-style filename pattern matching<\/li>\n\n\n\n<li><code>formatter<\/code>: Generic output formatting<\/li>\n\n\n\n<li><code>fractions<\/code>: Rational Numbers<\/li>\n\n\n\n<li><code>ftplib<\/code>: FTP protocol client<\/li>\n\n\n\n<li><code>functools<\/code>: Higher-order functions and operations on callable objects<\/li>\n\n\n\n<li><code>gc<\/code>: Garbage Collector interface<\/li>\n\n\n\n<li><code>getopt<\/code>: C-style parser for command line options<\/li>\n\n\n\n<li><code>getpass<\/code>: Portable password input<\/li>\n\n\n\n<li><code>gettext<\/code>: Multilingual internationalization services<\/li>\n\n\n\n<li><code>glob<\/code>: Unix style pathname pattern expansion<\/li>\n\n\n\n<li><code>grp<\/code>: Group Database (getgrnam() and friends)<\/li>\n\n\n\n<li><code>gzip<\/code>: Support for gzip files<\/li>\n\n\n\n<li><code>hashlib<\/code>: Secure hashes and message digests<\/li>\n\n\n\n<li><code>heapq<\/code>: Heap queue algorithm<\/li>\n\n\n\n<li><code>hmac<\/code>: Keyed-Hashing for Message Authentication<\/li>\n\n\n\n<li><code>html<\/code>: HyperText Markup Language support<\/li>\n\n\n\n<li><code>http<\/code>: HTTP protocol client and server<\/li>\n\n\n\n<li><code>imaplib<\/code>: IMAP4 protocol client<\/li>\n\n\n\n<li><code>imghdr<\/code>: Determine the type of an image file<\/li>\n\n\n\n<li><code>imp<\/code>: Deprecated, Importing modules<\/li>\n\n\n\n<li><code>importlib<\/code>: A powerful and flexible importer mechanism<\/li>\n\n\n\n<li><code>inspect<\/code>: Inspect live objects<\/li>\n\n\n\n<li><code>io<\/code>: Core tools for working with streams<\/li>\n\n\n\n<li><code>ipaddress<\/code>: IPv4\/IPv6 manipulation library<\/li>\n\n\n\n<li><code>itertools<\/code>: Functions creating iterators for efficient looping<\/li>\n\n\n\n<li><code>json<\/code>: JSON encoder and decoder<\/li>\n\n\n\n<li><code>keyword<\/code>: Testing for Python keywords<\/li>\n\n\n\n<li><code>lib2to3<\/code>: Automated Python 2 to 3 code translation<\/li>\n\n\n\n<li><code>linecache<\/code>: Random access to text lines<\/li>\n\n\n\n<li><code>locale<\/code>: Internationalization services<\/li>\n\n\n\n<li><code>logging<\/code>: Flexible event logging system for applications<\/li>\n\n\n\n<li><code>lzma<\/code>: Compression using the LZMA algorithm<\/li>\n\n\n\n<li><code>mailbox<\/code>: Manipulate mailboxes in various formats<\/li>\n\n\n\n<li><code>mailcap<\/code>: Mailcap file handling<\/li>\n\n\n\n<li><code>marshal<\/code>: Internal Python object serialization<\/li>\n\n\n\n<li><code>math<\/code>: Mathematical functions (sin() etc.)<\/li>\n\n\n\n<li><code>mimetypes<\/code>: Map filenames to MIME types<\/li>\n\n\n\n<li><code>mmap<\/code>: Memory-mapped file support<\/li>\n\n\n\n<li><code>modulefinder<\/code>: Find modules used by a script<\/li>\n\n\n\n<li><code>multiprocessing<\/code>: Process-based parallelism<\/li>\n\n\n\n<li><code>netrc<\/code>: Read netrc files<\/li>\n\n\n\n<li><code>nntplib<\/code>: NNTP protocol client<\/li>\n\n\n\n<li><code>numbers<\/code>: Numeric abstract base classes<\/li>\n\n\n\n<li><code>opcode<\/code>: Operations codes used by the Python interpreter<\/li>\n\n\n\n<li><code>optparse<\/code>: Deprecated since version 3.2: Use argparse instead<\/li>\n\n\n\n<li><code>os<\/code>: Miscellaneous operating system interfaces<\/li>\n\n\n\n<li><code>ossaudiodev<\/code>: Access to OSS-compatible audio devices<\/li>\n\n\n\n<li><code>parser<\/code>: Access parse trees for Python source code<\/li>\n\n\n\n<li><code>pathlib<\/code>: Object-oriented filesystem paths<\/li>\n\n\n\n<li><code>pdb<\/code>: The Python Debugger<\/li>\n\n\n\n<li><code>pickle<\/code>: Python object serialization<\/li>\n\n\n\n<li><code>pickletools<\/code>: Tools for working with Python pickles<\/li>\n\n\n\n<li><code>pipes<\/code>: Interface to shell pipelines<\/li>\n\n\n\n<li><code>pkgutil<\/code>: Package extension utility<\/li>\n\n\n\n<li><code>platform<\/code>: Platform identification<\/li>\n\n\n\n<li><code>plistlib<\/code>: Generate and parse Mac OS X .plist files<\/li>\n\n\n\n<li><code>poplib<\/code>: POP3 protocol client<\/li>\n\n\n\n<li><code>pprint<\/code>: Data pretty printer<\/li>\n\n\n\n<li><code>profile<\/code>: Deterministic profiling of Python programs<\/li>\n\n\n\n<li><code>pstats<\/code>: Statistics object for use with the profiler<\/li>\n\n\n\n<li><code>pty<\/code>: Pseudo-Terminal Handling for Linux<\/li>\n\n\n\n<li><code>pwd<\/code>: Password database (getpwnam() and friends)<\/li>\n\n\n\n<li><code>py_compile<\/code>: Compile Python source files to bytecode<\/li>\n\n\n\n<li><code>queue<\/code>: A synchronized queue class<\/li>\n\n\n\n<li><code>quopri<\/code>: Encode and decode MIME quoted-printable data<\/li>\n\n\n\n<li><code>random<\/code>: Generate pseudo-random numbers<\/li>\n\n\n\n<li><code>re<\/code>: Regular expression operations<\/li>\n\n\n\n<li><code>readline<\/code>: GNU readline support<\/li>\n\n\n\n<li><code>reprlib<\/code>: Alternate repr() implementation<\/li>\n\n\n\n<li><code>resource<\/code>: Resource usage information<\/li>\n\n\n\n<li><code>rlcompleter<\/code>: Completion function for GNU readline<\/li>\n\n\n\n<li><code>runpy<\/code>: Locating and running Python modules<\/li>\n\n\n\n<li><code>sched<\/code>: Event scheduler<\/li>\n\n\n\n<li><code>secrets<\/code>: Generate secure random numbers for managing secrets<\/li>\n\n\n\n<li><code>select<\/code>: Waiting for I\/O completion<\/li>\n\n\n\n<li><code>shelve<\/code>: Python object persistence<\/li>\n\n\n\n<li><code>shlex<\/code>: Simple lexical analysis<\/li>\n\n\n\n<li><code>shutil<\/code>: High-level file operations<\/li>\n\n\n\n<li><code>signal<\/code>: Set handlers for asynchronous events<\/li>\n\n\n\n<li><code>site<\/code>: Site-specific configuration hook<\/li>\n\n\n\n<li><code>smtpd<\/code>: SMTP server classes<\/li>\n\n\n\n<li><code>smtplib<\/code>: SMTP protocol client<\/li>\n\n\n\n<li><code>sndhdr<\/code>: Determine type of sound file<\/li>\n\n\n\n<li><code>socket<\/code>: Low-level networking interface<\/li>\n\n\n\n<li><code>socketserver<\/code>: A framework for network servers<\/li>\n\n\n\n<li><code>sqlite3<\/code>: DB-API 2.0 interface for SQLite databases<\/li>\n\n\n\n<li><code>ssl<\/code>: TLS\/SSL wrapper for socket objects<\/li>\n\n\n\n<li><code>stat<\/code>: Interpreting stat() results<\/li>\n\n\n\n<li><code>statistics<\/code>: Mathematical statistics functions<\/li>\n\n\n\n<li><code>string<\/code>: Common string operations<\/li>\n\n\n\n<li><code>stringprep<\/code>: Internet string preparation<\/li>\n\n\n\n<li><code>struct<\/code>: Interpret bytes as packed binary data<\/li>\n\n\n\n<li><code>subprocess<\/code>: Subprocess management<\/li>\n\n\n\n<li><code>sunau<\/code>: Read and write Sun AU files<\/li>\n\n\n\n<li><code>symbol<\/code>: Constants used with Python parse trees<\/li>\n\n\n\n<li><code>symtable<\/code>: Access to the symbol tables used by the Python compiler<\/li>\n\n\n\n<li><code>sys<\/code>: System-specific parameters and functions<\/li>\n\n\n\n<li><code>sysconfig<\/code>: Access Python&#8217;s configuration information<\/li>\n\n\n\n<li><code>tabnanny<\/code>: Indentation validator<\/li>\n\n\n\n<li><code>tarfile<\/code>: Read and write tar archive files<\/li>\n\n\n\n<li><code>telnetlib<\/code>: Telnet client<\/li>\n\n\n\n<li><code>tempfile<\/code>: Generate temporary files and directories<\/li>\n\n\n\n<li><code>termios<\/code>: POSIX terminal control<\/li>\n\n\n\n<li><code>test<\/code>: Support for unit testing<\/li>\n\n\n\n<li><code>textwrap<\/code>: Text wrapping and filling<\/li>\n\n\n\n<li><code>this<\/code>: Prints the Zen of Python<\/li>\n\n\n\n<li><code>threading<\/code>: Thread-based parallelism<\/li>\n\n\n\n<li><code>time<\/code>: Time access and conversions<\/li>\n\n\n\n<li><code>timeit<\/code>: Measure execution time of small code snippets<\/li>\n\n\n\n<li><code>tkinter<\/code>: Python interface to Tcl\/Tk<\/li>\n\n\n\n<li><code>token<\/code>: Constants representing terminal nodes of Python parse trees<\/li>\n\n\n\n<li><code>tokenize<\/code>: Tokenize Python source code<\/li>\n\n\n\n<li><code>trace<\/code>: Trace or track Python statement execution<\/li>\n\n\n\n<li><code>traceback<\/code>: Print or retrieve a stack traceback<\/li>\n\n\n\n<li><code>tracemalloc<\/code>: Debug tools for tracking memory allocations<\/li>\n\n\n\n<li><code>tty<\/code>: Terminal control functions<\/li>\n\n\n\n<li><code>turtle<\/code>: Turtle graphics<\/li>\n\n\n\n<li><code>turtledemo<\/code>: Demonstration suite for the turtle graphics module<\/li>\n\n\n\n<li><code>types<\/code>: Dynamic type creation and names for built-in types<\/li>\n\n\n\n<li><code>typing<\/code>: Support for type hints<\/li>\n\n\n\n<li><code>unicodedata<\/code>: Unicode Database<\/li>\n\n\n\n<li><code>unittest<\/code>: Unit testing framework<\/li>\n\n\n\n<li><code>urllib<\/code>: URL handling modules<\/li>\n\n\n\n<li><code>uu<\/code>: UUencode and UUdecode files<\/li>\n\n\n\n<li><code>uuid<\/code>: UUID objects according to RFC 4122<\/li>\n\n\n\n<li><code>venv<\/code>: Creation of virtual environments<\/li>\n\n\n\n<li><code>warnings<\/code>: Warning control<\/li>\n\n\n\n<li><code>wave<\/code>: Read and write WAV files<\/li>\n\n\n\n<li><code>weakref<\/code>: Weak references<\/li>\n\n\n\n<li><code>webbrowser<\/code>: Convenient Web-browser controller<\/li>\n\n\n\n<li><code>wsgiref<\/code>: WSGI Utilities and Reference Implementation<\/li>\n\n\n\n<li><code>xdrlib<\/code>: Encode and decode XDR data<\/li>\n\n\n\n<li><code>xml<\/code>: Package containing XML processing modules<\/li>\n\n\n\n<li><code>xmlrpc<\/code>: XML-RPC server and client modules<\/li>\n\n\n\n<li><code>zipapp<\/code>: Manage executable Python zip archives<\/li>\n\n\n\n<li><code>zipfile<\/code>: Work with ZIP archives<\/li>\n\n\n\n<li><code>zipimport<\/code>: Import modules from ZIP archives.<\/li>\n\n\n\n<li><code>zlib<\/code>: Compression and decompression using the zlib library.<\/li>\n<\/ul>\n\n\n\n<p>It&#8217;s worth noting that not all of these modules are available on all platforms, and some of them may have platform-specific behaviors. Additionally, Python has an extensive library of third-party modules available for download, which can greatly expand its capabilities.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div style=\"height:53px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/reddogfun.com\/index.php\/python-suggestions\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/reddogfun.com\/wp-content\/uploads\/2023\/04\/email_001.png\" alt=\"\" class=\"wp-image-2310\" width=\"76\" height=\"50\"\/><\/a><\/figure>\n<\/div>\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/reddogfun.com\/index.php\/python-suggestions\/\"><strong>Suggestions for future samples?  Send me a message and I&#8217;ll see what I can do!<\/strong><\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:65px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a list of the standard Python modules that are included with Python: It&#8217;s worth noting that not all of these modules are available on all platforms, and some of them may have platform-specific behaviors. Additionally, Python has an extensive library of third-party modules available for download, which can greatly expand its capabilities.<\/p>\n","protected":false},"author":1,"featured_media":2317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[212],"tags":[],"class_list":["post-2353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-samples"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/reddogfun.com\/wp-content\/uploads\/2023\/04\/Headder_004-2.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/posts\/2353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/comments?post=2353"}],"version-history":[{"count":4,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/posts\/2353\/revisions"}],"predecessor-version":[{"id":2357,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/posts\/2353\/revisions\/2357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/media\/2317"}],"wp:attachment":[{"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/media?parent=2353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/categories?post=2353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reddogfun.com\/index.php\/wp-json\/wp\/v2\/tags?post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}