Third-Party Library

noun

say it: “THURD PAR-tee LY-brer-ee” /ˈθɝd ˈpɑrti ˈlaɪbrɛri/

Code written by people outside the Python team, shared online and installed with pip, such as requests for calling websites.

What is a third-party library?

A third-party library is code written by someone outside the Python team that you install with pip, like requests for talking to websites.

import requests
response = requests.get("https://api.github.com")
print(response.status_code)  # 200

In a sentence

  • “requests is a third-party library, so it goes in requirements.txt.”
  • “Before adding a third-party library, check that it's still looked after.”

Level: Journeyman · More Python terms at this level

Updated