Python — From Zero to Deployed API

Python — From Zero to Deployed API

Learn Python from the ground up and build a fully deployed REST API with FastAPI and PostgreSQL in 7 weeks.

This course takes you from writing your first Python script to deploying a production-ready REST API on the internet — with a real PostgreSQL database, JWT authentication, and live Swagger documentation.You will spend the first two weeks mastering Python's core language: data structures, functions, file handling, and error handling. Week 3 deepens your thinking with object-oriented programming — classes, inheritance, and encapsulation — which directly prepares you for the database and framework weeks ahead.Week 4 covers PostgreSQL and SQLAlchemy: you will write raw SQL, then learn to work at the ORM level, and version-control your schema with Alembic migrations. Weeks 5 and 6 are where everything comes together — you build a full Task Management API in FastAPI with user authentication, data validation via Pydantic, and an automated test suite.The final week is deployment: your API goes live on Render backed by a Neon cloud PostgreSQL database, with a public Swagger URL you can put in your portfolio the same day.Every module ends with a project that uses only what has been taught so far — no black-box magic, no copy-paste tutorials. By the end, you will have built five progressively complex projects and deployed one of them to the internet.

Curriculum

Core language — syntax, data structures, functions, file handling

What you will learn
  • Environment setup, virtual environments & pip
  • Variables, data types, operators & type casting
  • Control flow — if/elif/else, for & while loops
  • Functions, *args/**kwargs & scope
  • Lists, tuples, sets & dictionaries
  • File handling — read, write, append
  • Error handling — try/except/finally
  • List & dict comprehensions, lambda, map/filter
  • JSON, collections & pathlib modules
What you'll be able to do
  • Write clean Python scripts confidently
  • Handle files, errors, and data structures

  • Build reusable functions with proper arguments
Mini-Project -- CLI Grade Calculator

Reads student names and scores from a CSV, computes per-student averages and pass/fail status, and writes a formatted report to a text file. Uses functions, dicts, file I/O, and error handling.

Classes, inheritance, encapsulation & design patterns

What you will learn
  • Classes, objects, __init__ & instance attributes
  • Instance, class & static methods
  • @property — getters, setters & validation
  • Inheritance, super() & method overriding
  • Abstract classes with the abc module
  • Magic/dunder methods — __str__, __eq__, __lt__
  • Revision day — refactor, peer review & Q&A
What you'll be able to do
  • Model real problems as classes
  • Use inheritance to avoid duplicated code
  • Enforce data rules with @property and validation
Mini-Project — OOP Inventory System

Product base class with PhysicalProduct and DigitalProduct subclasses, and an Inventory manager with search, stock alerts, and @property price validation.

Raw SQL, SQLAlchemy ORM, Alembic migrations

What you will learn
  • PostgreSQL setup, psql CLI & pgAdmin
  • SQL — SELECT, INSERT, UPDATE, DELETE, constraints
  • JOINs, GROUP BY, aggregates & indexes
  • psycopg2 — parameterised queries from Python
  • SQLAlchemy ORM — models, sessions, relationships
  • Alembic — schema migrations & version control
  • Project build & revision day
What you'll be able to do
  • Design and query a relational database
  • Connect Python to PostgreSQL safely
  • Version-control your schema with migrations
Mini-Project — Library Management System

Members, Books, and Loans tables in SQLAlchemy with an Alembic migration. Python CLI for borrowing, returning, and listing overdue loans, with a seed script for test data.

Routing, Pydantic, JWT auth, testing & capstone build

What you will learn
  • FastAPI, async/await, Uvicorn & auto Swagger docs
  • Pydantic schemas — request/response validation
  • Project structure, APIRouter & get_db dependency
  • Full CRUD — proper HTTP verbs & status codes
  • Custom error handling & logging middleware
  • JWT auth — bcrypt, token creation & protected routes
  • User-scoped data — ownership & 403 enforcement
  • CORS, background tasks & pytest with TestClient
  • Capstone build — Task Management API
  • Capstone review, Swagger polish & Q&A
What you'll be able to do
  • Build a fully documented REST API
  • Implement secure JWT authentication
  • Write automated tests with pytest
Capstone — Task Management API

Full REST API with JWT-based registration and login, user-scoped task CRUD, priority and status filtering, a pytest test suite, and Swagger documentation.

Cloud PostgreSQL, Render hosting & live demo

What you will learn
  • Environment variables, .env files & 12-factor config
  • Neon serverless PostgreSQL — live database setup
  • Deploy to Render — build config, env vars & logs
  • Production hardening — CORS, health endpoint
  • Live demo, Swagger docs review & portfolio tips
What you'll be able to do
  • Deploy a real app to the internet
  • Manage secrets and environment config
  • Present a live portfolio project
Final Deliverable — The Task Management API running on Render with a Neon PostgreSQL database. Public URL with working Swagger docs, accessible from any browser.

Course Info

  • Price NPR 25,000 NPR 20,000
  • Duration 7 weeks
  • Level Beginner
  • Language Nepali
  • Mode Physical
  • Certificate Yes
Share this course: