library
A package of reusable code that other programs include and call, rather than a program you run on its own.
In more detail
A library provides functions and types that your code calls; it does not run on its own. Libraries come with a language's standard library or are installed from a package registry, usually at a version recorded by a dependency manager. Sharing code through a versioned library is safer than copying it between projects.
Examples
In the browser: Libraries add download size and trust in a third party. Native browser features such as View Transitions and EventTarget can replace some of them.Your own library: a package folder of modules you import from your scripts.Related terms
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
- codebase — All the source code for a piece of software, usually kept in one or more version control repositories.
- package manager — A tool that installs, updates and removes software together with what it depends on, such as apt on Debian, apk on Alpine or Homebrew on macOS.
- standard library — The collection of modules that ships with a programming language, available without installing anything extra.
- package — A folder of Python modules that can be imported as a group, or a distributable bundle of Python code installed with pip.
- module — A file of code whose functions, classes and variables other files can use by importing it.
Taught in
- Codebase And Dependencies — DevOps & Site Reliability Engineering
- Port Binding And Concurrency — DevOps & Site Reliability Engineering
- Modern CSS Animations, Transitions And View Transitions API — Frontend Architecture & Web Platform
- CustomEvent Dispatching And Decoupled Component Event Buses — Frontend Architecture & Web Platform
- What Python Is, And Where It Came From — Hands-on Python: Complete Video Course & Book
- Installing Python On Windows — Hands-on Python: Complete Video Course & Book
- Installing Python On A Mac — Hands-on Python: Complete Video Course & Book
- Reading A Traceback Like A Professional — Hands-on Python: Complete Video Course & Book
- Modules And The Import System — Hands-on Python: Complete Video Course & Book
- A Standard Library Tour — Hands-on Python: Complete Video Course & Book