← Module 08 · Development & Git
MODULE 08 · DEVELOPMENT & GIT

Package

A distributable collection of software files and metadata that can be installed or reused.

01

What is it?

A package groups related code so it can be reused and distributed.

Backend projects often depend on packages created by other developers or teams.

Simple Definition: A package is reusable code bundled together.

02

Think of it like...

Think of a toolbox.

Instead of building every tool yourself, you install a package and use the tools it provides.

Reusable toolsbundled and ready to use
03

What does it do?

Packages can provide:

Frameworks

Database Drivers

HTTP Clients

Validation Tools

Logging Tools

Utility Functions

04

Where is it used?

Packages are used in:

Python ProjectsBackend ApplicationsAPIsAutomationData ProcessingTesting
05

Example

Python package: fastapi

Install

pip install fastapi

Use

from fastapi import FastAPI
06

How it connects

Package RepositoryInstallProject DependencyImportApplication

A package moves from a repository into the project environment, then becomes available to application code.

07

Do Not Confuse

Package

A collection of related code that may contain multiple modules.

Module

A single code file or logical unit.

Package ≠ Module

08

Topic Glossary

ENGLISH TERM中文SIMPLE ENGLISH中文小白理解
Package软件包A reusable collection of code.打包在一起、可以安装并重复使用的一组代码。
Module模块A unit of code that can be imported.可以被其他代码导入使用的一块程序。
pipPython 包管理工具A tool commonly used to install Python packages.Python 中常用来下载安装第三方软件包的工具。
Install安装Adding a package to an environment.把某个软件包加入当前项目运行环境。
Import导入Making code from another module or package available.在程序中引用另一个模块或软件包的代码。
Dependency依赖A package or component required by the project.项目运行时需要使用的软件包或组件。
09

What to Remember

Packages bundle reusable code.

Backend projects often depend on external packages.

Packages are installed into an environment and imported into code.

PackageEnvironmentImported Code
↑