Modules

Modules

LanguagePython

1 Description

These modules come with every standard Python language installation. Modules must be imported before their contents may be used.

2 List of Modules

List of Modules
Module Name Module Description
array Provides a memory efficient way to store data.
bisect Provides an implementation of a basic bisection algorithm.
calendar Used to output a calendar on the command line.
codecs Defines classes for standard Python encoders and decoders.
collections Specialized container datatypes.
collections.abc Contains abstract base classes for class interface testing.
copy Copy objects in a shallow or deep manner.
copyreg Used with the pickle module to assign functions.
datetime For manipulating dates and times.
dbm Functions for interacting with DBM style databases.
difflib For comparing sequences.
enum For creating enumerations.
graphlib For creating and managing graph like data structures.
gzip Functions for compressing and decompressing gzip files.
heapq Provides an implementation of the Heap Queue algorithm.
multiprocessing For creating multiple processes.
pprint For printing information in a visually pleasing (pretty) manner.
re For when you need to use a regular expression.
readline For reading from or writing to history files.
reprlib For creating a string representation of an object.
rlcompleter For completing valid Python identifiers and keywords.
sqlite3 For interacting with the SQLite database.
string For dealing with and manipulating strings.
stringprep For escaping strings so they may be used in certain internet contexts.
struct For converting between Python values and C structs.
textwrap For wrapping or filling text strings.
threading For creating multithreaded applications.
types For dynamically creating new types.
unicodedata For obtaining information from the Unicode Character Database (UCD).
weakref For creating weak references to objects.
zoneinfo For when you need to interact with a IANA Time Zone Database.

This document was last updated: