Project One: CLI Script
Build a practical command-line tool from scratch, learning to handle user input, process data, and create useful automation.
9 lessons
Project Overview: Stock Data Fetcher
Build a command-line tool that fetches real stock prices — your first project integrating APIs, data parsing, and error handling.
Understanding API Documentation
API documentation is your contract with external services — learn to find authentication, endpoints, limits, and error codes quickly.
Setting Up and Choosing an API
Choose a stock data API and set up your Python project with proper structure and security practices.
Prompting AI for Core Functionality
Learn to write effective prompts that generate working API fetch code with proper error handling.
Understanding and Reviewing Generated Code
Learn to read, understand, and verify AI-generated code before running it in your project.
Handling Secrets and Configuration
Implement secure secret handling using environment variables and configuration best practices.
Adding CLI Arguments
Transform your script into a real command-line tool with argument parsing, flags, and help text.
Error Handling and Edge Cases
Add comprehensive error handling to make your CLI tool robust and user-friendly.
Testing and Completing the Project
Test your stock fetcher thoroughly, fix issues, and document it for others to use.