Skip to main content

Extending Python

Python provides the programming syntax and core features. Libraries and frameworks add specialized functionality. Depending on the libraries you import, the same Python code can be used to:
  • Build frontend applications (user interfaces)
  • Develop backend web APIs and servers
  • Perform data analysis and visualization
  • Build AI/ML models
  • Create Generative AI applications such as chatbots, RAG systems, and AI assistants.

What are packages really?

Packages are just Python files containing code - typically combinations of functions (which you’ve learned) and classes (coming later). When you import a package, you’re bringing that functionality into your project. Two types of packages:
  • Built-in: Come with Python installation (already in your environment)
  • External: Downloaded from the internet into your virtual environment folder

Python’s ecosystem

Python has packages for everything:
  • Build frontend applications (user interfaces) (e.g., streamlit, gradio)
  • Develop backend web APIs and servers (e.g., fastapi, flask, django)
  • Perform data analysis and visualization (e.g., pandas, matplotlib, seaborn)
  • Build AI/ML models (e.g., scikit-learn, pytorch, tensorflow)
  • Create Generative AI applications such as chatbots, RAG systems, and AI assistants (e.g., openai, langchain)

What you’ll learn

External Modules

Manage packages with pip, PyPI, and uv

Work with APIs

Connect to online services

Environment Variables

Manage secrets and load parameters using .env

Package examples

Here are packages you’ll likely use:
  • requests - Make web requests
  • pandas - Work with data tables
  • scikit-learn - Build machine learning models
  • openai - Use AI models
  • python-dotenv - Manage secrets
When you need to do something, search “Python package for [task]” and you’ll likely find options.

Let’s begin!

Start by learning how to work with Python’s built-in standard library modules.

Working with Built-in Modules

Learn to use math, random, datetime, and os