Skip to content
BENIBIX Learn

Package Registry

Development🛠️ Editors & ToolsPackages

Also known as Package Repository, Package Index, PyPI

A website that keeps packages so anyone can get them by name.

Think of it like

It is like a big library. Anyone can take a book out, and some people can add new ones.

Example

Jack types pip install requests. pip asks PyPI for the requests package and downloads the newest version.

Why it matters

It is where almost every package comes from. If a bad package gets in, every project that installs it gets the bad code too.

Definition

A package registry is a website that stores packages so anyone can download them. Each language has its main one. JavaScript has the npm registry. Python has the Python Package Index, called PyPI. Your package manager asks it for a name and a version, then gets it. Companies also run their own, kept private.
The registry is the shelf on the left that every install starts from.

Common mistake

Trusting a package just because it is on the registry. Anyone can publish, so check the name, the author and how much it is used.

Key takeaways

  1. 1
    One per language. npm for JavaScript, PyPI for Python.
  2. 2
    Anyone can publish. So check before you install.
  3. 3
    Private ones too. Teams host their own code the same way.

Compare

Learn it properly