All Modules in Python

The Python standard library contains over 200 modules. Being an open-source programming language everyone can contribute to Python by creating more packages, libraries and modules. But some modules comes preinstalled with Python which collectively is known as the Python standard library. So in this article, I will take you through a list of all modules in Python.

List of All Modules in Python

All the Python modules mentioned below are those modules that come preinstalled in the Python standard library. To become a Python developer you don’t need to learn all these modules but you should know which module is used for which task. So below is a list of all modules in Python.

Python ModulesThe Usage of Python Modules
aifcUsed to read and write audio files in AIFF or AIFC format.
argparseCommand‐line option and argument parsing library.
arraySpace‐efficient arrays of uniformly typed numeric values.
asynchatSupport for asynchronous command/response protocols.
asyncioAsynchronous I/O, event loop, coroutines, and tasks
asyncoreA base class for developing asynchronous socket‐handling services.
atexitRegister and execute cleanup functions.
audioopManipulate raw audio data.
base64RFC 3548: Base16, Base32, Base64 Data Encodings; Base85, and ASCII85.
binasciiTools for converting data to and from various ASCII‐encoded binary representations.
binhexEncode and decode files in binhex4 format.
bisectArray bisection algorithms for binary searching.
bz2Interfaces for bzip2 compression and decompression.
calendarFunctions for working with calendars.
cmathMathematical functions for complex numbers.
cmdBuild line‐oriented command interpreters.
collectionsContainer data types.
configparserConfiguration file parser.
contextlibUtilities for with‐statement contexts.
copyShallow and deep copy operations.
csvWrite and read tabular data to and from comma‐delimited data files.
ctypesA foreign function library for Python.
datetimeBasic date and time operations.
dbmInterfaces to various key‐value database formats.
decimalImplementation of the General Decimal Arithmetic Specification.
doctestTest snippets of code appearing within docstrings.
fractionsRational numbers.
functoolsHigher‐order functions and operations on callable objects.
gettextMultilingual internationalization services.
globUNIX shell-style pathname pattern expansion.
hashlibSecure hash and message digest algorithms.
html.parserA simple parser that can handle HTML and XHTML.
httpPackage supporting the use of HTTP including client, server, and cookie
http.serverHTTP server and request handlers.
itertoolsFunctions creating iterators for efficient looping.
jsonEncode and decode the JSON data format.
localeInternationalization services.
loggingFlexible event logging for applications
mathMathematical functions
osMiscellaneous operating system interfaces.
os.pathProvides helper functions for manipulating and testing file paths.
pdbA debugger for interactive Python interpreters.
pickleConvert Python objects to streams of bytes and back.
pwd (UNIX)The password database.
queueA queue class suitable for communicating between threads.
reRegular‐expression operations.
shelvePython object persistence.
shlexSimple lexical analysis for UNIX shell-like languages.
socketLow‐level networking interface.
socketserverA framework for network servers.
sqlite3A DB‐API 2.0 implementation using SQLite 3.x.
tkinterInterface to Tcl/Tk for graphical user interfaces
turtleAn educational framework for developing simple graphics applications.
urllibPackage for processing URLs including requests, responses, errors, and so on.
xmlPackage containing XML processing modules
zipfileRead and write zip‐format archive files.

Also, Read – Python Projects with Source Code.

So this was the list of all the modules in the Python programming language that you should know as a Python developer. You can explore more about all these modules from here. I hope you liked this article, feel free to ask your valuable questions in the comments section below.

Default image
Aman Kharwal

Coder with the ❤️ of a Writer || Data Scientist | Solopreneur | Founder

Leave a Reply

Data Science | Machine Learning | Python | C++ | Coding | Programming | JavaScript