How mouredev/hello-python works
Hello Python is a learning repository: its main user journey is following beginner and intermediate Python lessons, then applying the material in a FastAPI backend course. The backend demonstrates API routing, in-memory and MongoDB-backed users, product endpoints, and two authentication approaches. The README documents these course areas; sampled backend source supports the wiring shown below. The frontend, ChatGPT, and voice-translation courses link to separate projects or gists, so they are not represented as implemented here.
Main entry points: main.py FastAPI application · users_db.py Database users API · 08_python_package_manager.py Packages and APIs · client.py MongoDB client
Components 22
Python lessons
- Python foundations
Basic/00_helloworld.py - Control flow
Basic/08_conditionals.py - Functions and classes
Basic/10_functions.py - Module examples
Basic/13_modules.py - Intermediate concepts
Intermediate/00_dates.py - Functional tools
Intermediate/03_lambdas.py - Files and regex
Intermediate/06_file_handling.py - Packages and APIs
Intermediate/08_python_package_manager.py - Arithmetic package
Intermediate/mypackage/arithmetics.py
FastAPI backend
- FastAPI application
Backend/FastAPI/main.py - Product endpoints
Backend/FastAPI/routers/products.py - In-memory users
Backend/FastAPI/routers/users.py - Basic OAuth2
Backend/FastAPI/routers/basic_auth_users.py - JWT OAuth2
Backend/FastAPI/routers/jwt_auth_users.py - Database users API
Backend/FastAPI/routers/users_db.py
MongoDB persistence
- User model
Backend/FastAPI/db/models/user.py - User schemas
Backend/FastAPI/db/schemas/user.py - MongoDB client
Backend/FastAPI/db/client.py
External services
- API client
- MongoDB
- PokéAPI
Other components
- Learner
Connections 16
- Learner → Python foundations: follows course
README.md - Learner → Intermediate concepts: follows course
README.md - Learner → FastAPI application: learns backend
README.md - Module examples → Python foundations: imports example
Basic/13_modules.py - Packages and APIs → Arithmetic package: calls sum
Intermediate/08_python_package_manager.py - Packages and APIs → PokéAPI: requests data
Intermediate/08_python_package_manager.py - API client → FastAPI application: sends requests
- FastAPI application → Product endpoints: registers router
Backend/FastAPI/main.py - FastAPI application → In-memory users: registers router
Backend/FastAPI/main.py - FastAPI application → Basic OAuth2: registers router
Backend/FastAPI/main.py - FastAPI application → JWT OAuth2: registers router
Backend/FastAPI/main.py - FastAPI application → Database users API: registers router
Backend/FastAPI/main.py - Database users API → MongoDB client: queries users
Backend/FastAPI/routers/users_db.py - Database users API → User schemas: converts records
Backend/FastAPI/routers/users_db.py - Database users API → User model: validates users
Backend/FastAPI/routers/users_db.py - MongoDB client → MongoDB: connects to
Backend/FastAPI/db/client.py