Skip to content

Library

A set of pre-written code that is connected to one's program. Solves typical tasks such as HTTP requests, parsing, and data handling.

Examples in AI

  • requests — HTTP requests in Python;
  • beautifulsoup4 — parsing HTML;
  • transformers — Hugging Face models;
  • pandas — tabular data.

Installation

pip install requests

Library vs Framework

A library is called from one's code, whereas a framework calls your code. A library is a tool, a framework is a structure.

See Also

← All terms