# Package

*noun*

say it: **“PAK-ij”** **/ˈpækɪdʒ/**

A folder of related Python modules you can import from, often shared online for anyone to install with pip.

## What is a **package** in Python?

A **package** is a folder of related modules you can import from. Many packages are shared online for anyone to install.

```python
# shop/
#   __init__.py
#   cart.py
#   payments.py

from shop.cart import add_item
```

## In a sentence

- “The shop **package** holds cart.py and payments.py, and the app imports from both.”
- “requests is a **package** you install with pip.”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

## In other subjects

- [Package in Java](https://www.ask-codey.com/glossary/package-java)
- [Package in JavaScript](https://www.ask-codey.com/glossary/package-javascript)

Source: https://www.ask-codey.com/glossary/package
