standard library
The collection of modules that ships with a programming language, available without installing anything extra.
In more detail
The standard library covers common needs such as data structures, file handling, networking and text processing, so programs can do a lot without third-party packages. Its code is widely used and well tested, so it is usually a safer choice than a hand-written equivalent.
Examples
Python modules used in the course: collections, heapq, bisect, hashlib, functools, operator, array.import hashlib, hmac, secrets # all ship with Pythonipaddress.ip_network("10.20.9.0/24").subnet_of(ipaddress.ip_network("10.0.0.0/8"))Related terms
- Python — A popular general-purpose programming language known for readable code and a large standard library.
- deque — A double-ended queue: a sequence that adds and removes items at either end in O(1) time; Python provides it as collections.deque.
- heapq — Python's standard-library module of functions that treat an ordinary list as a binary min-heap.
- bisect module — Python's standard-library module of correct binary-search functions for sorted lists.
- hashlib — The Python standard-library module that computes stable cryptographic hashes such as SHA-256.
- module — A file of code whose functions, classes and variables other files can use by importing it.
- PyPI — The Python Package Index at pypi.org, the public online catalogue from which pip downloads third-party packages.
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
Taught in
- Why Complexity Matters In Production — Algorithms & Data Structures for Working Engineers
- Space, In-Place Work And The Call Stack — Algorithms & Data Structures for Working Engineers
- Arrays: Contiguous Memory And Constant-Time Access — Algorithms & Data Structures for Working Engineers
- Choosing The Right Sequence — Algorithms & Data Structures for Working Engineers
- Binary Trees And Their Traversals — Algorithms & Data Structures for Working Engineers
- AVL Trees: Rotations That Keep The Guarantee — Algorithms & Data Structures for Working Engineers
- What An API Is, And The Alternatives — Modern API Architecture: REST, GraphQL & gRPC
- Social Engineering, Phishing & Human Defense — Cybersecurity Fundamentals, GRC & Cryptography
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Data Classification Schemes & Sensitivity Labeling — Cybersecurity Fundamentals, GRC & Cryptography
- Business Impact Analysis, RTO & RPO Modeling — Cybersecurity Fundamentals, GRC & Cryptography
- Backup Architectures: 3-2-1, Immutability & Air-Gaps — Cybersecurity Fundamentals, GRC & Cryptography
- Incident Roles, Escalation & Crisis Comm — Cybersecurity Fundamentals, GRC & Cryptography
- Security Architecture Gap Analysis — Cybersecurity Fundamentals, GRC & Cryptography
- What Python Is, And Where It Came From — Hands-on Python: Complete Video Course & Book
- Where Python Lives: PATH And Versions — Hands-on Python: Complete Video Course & Book
- CGI: Dynamic Web Pages — Hands-on Python: Complete Video Course & Book
- Modules And The Import System — Hands-on Python: Complete Video Course & Book
- Dependency Risk And Typosquatting — Application Security & Threat Modeling for Engineers