Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Flask - Create APIs using Python
Rating: 4.4 out of 5(15 ratings)
74 students

Python Flask - Create APIs using Python

Python, Flask, API, Web Service
Created bySoumyadeep Dey
Last updated 4/2025
English
English [Auto],

What you'll learn

  • Students will Learn basics of Python
  • This course will teach how to create APIs using Python Flask library
  • This course will entail multiple scenarios to create APIs
  • Build Web Application using Python Flask
  • Students will be able to do hands-on using 5 different projects provided with all the resources

Course content

5 sections73 lectures19h 16m total length
  • Python Intro - Architecture, PyCharm, Virtual Env39:32

    Explore Python's role in data engineering and AI, from installation and virtual environments to IDEs like PyCharm or VS code, and essential libraries for data science.

  • PyCharm & CLI Walkthrough8:51

    Explore Python fundamentals in PyCharm and CLI, from interpreting vs compiling, objects and data types to type conversion and memory, with hands-on setup and package management.

  • Compiled vs Interpreted7:41

    Explore how Python can run as an interpreted language in IDEs or the command line, and how pre-compiling with py_compile produces bytecode (.pyc) for faster execution.

  • Everything is Python is Object12:38

    Explore how Python treats every entity as an object, using classes as templates and objects that exist in memory, and learn core data types like list, tuple, dictionary, and set.

  • String10:20

    Learn how to work with strings in python by creating and assigning string variables, converting with str(), and applying operations such as split, strip, capitalize, lower/upper, numeric checks, and concatenation.

  • Number4:02

    Explore numeric data types in Python, including integers, floats, and decimal values, with operations like round, divmod, power, hex conversion, and is_integer checks, plus practical hands-on initialization.

  • List11:35

    Explore lists as mixed-type containers in Python, including initialization with list(), zero-based indexing, and common operations like append, insert, pop, extend, remove, reverse, sort, and clear.

  • Tuple6:16

    Learn about tuples, immutable data types similar to lists, where elements cannot be changed; access by index, count, search values, and modify inner lists in a practical example.

  • Set, Dict, Type Conversion16:03

    Master Python data types by studying sets and dictionaries, their operations like add, union, intersection, pop, keys and values, updates, and type conversion between lists, sets, and primitives.

  • Memory Allocation & Operators10:27

    Explore memory allocation in Python, where variables store addresses, not values, and use id and hex to reveal locations; grasp objects, basic operators, and assignment versus comparison operators.

  • Set up Python interpreter in PyCharm11:22

    Set up a Python interpreter and a virtual environment in PyCharm, creating a project folder. Install libraries such as Pi Spark and Apache Airflow from the IDE or terminal.

  • Print & Input Functions16:03

    Learn the print function to output variables and strings, use format to compose messages, and employ the input function to capture user data and convert types with int.

  • IF Statement14:36

    Explore conditional logic in Python using if, elif, and else, handling thresholds like 5000, 3000, and 1111.11 with actions such as calling, texting, or gifting, including indentation and operators.

  • For & While loops15:57

    Learn how to use for loops to iterate over lists, tuples, dictionaries, sets, and ranges, and how to break when needed. Understand while loops and prevent infinite loops with conditions.

  • Python Functions Intro9:53

    Explore Python functions and their role as methods in classes, including defining with def, calling, returning values, and how to use them to create reusable code and APIs with Flask.

  • Function Scoping15:19

    Explore function scope and the LGB rule (local, global, built in) in Python, and learn how the global keyword can break the rule to apply changes globally.

  • Functions RETURN Keyword7:53

    Learn how the return keyword transfers a value from a function to the caller, using single and multiple returns, and capturing results in variables or tuples.

  • Function Passing Arguments9:37

    Pass dynamic values to Python functions using arguments and avoid hard-coded data. Understand how memory addresses and references enable calculations and returns.

  • Modify Arguments9:06

    explain passing and modifying arguments for integers, strings, lists, sets, dictionaries, and tuples, and how the LGB rule governs local versus global changes inside functions.

  • Positional & Keyword Arguments9:42

    demonstrates python's positional and keyword arguments, showing that positional calls rely on order while keyword calls map values by parameter names, avoiding order errors.

  • args & kwargs16:38

    Master positional and keyword arguments in Python, learn to use *args and **kwargs to accept variable inputs, and handle mixed argument scenarios for flexible function definitions.

  • Class Object Self32:48

    Explore object oriented programming in Python, defining classes and creating objects with methods, constructors, and self to manage instance state, memory, and identity.

  • Class-Instance Variables, __init__17:00

    Learn how self identifies an instance, distinguish instance from class variables, and use __init__ as a constructor to initialize object state with lgb rules for class variables.

  • Class Object Exercise 114:48

    Create two Python classes for a customer onboarding app and a salary hike calculator, printing names and ages, generating random ids and emails, and computing hikes from years of experience.

  • Class Object Exercise 213:47

    Implement a Python class called hike generator to compute salary hikes from current salary and years of experience, calculated from the date of joining, using a lookup table of percentages.

  • Inheritance7:50

    Inheritance lets a child class reuse the parent class's methods and variables while adding its own, showing parent and child classes, and how multiple inheritance works.

  • Python Memory Management8:05

    Explains memory management in Python by walking through function and class memory, stack frames, object creation, application heap, and Python's garbage collection.

  • Modules & Packages33:26

    Explore modules and packages in Python, learn import techniques with dot notation and aliases, understand namespaces, package init files, and best practices for organizing code.

  • HandsOn Exercise1:31

    Write modular Flask APIs to manage a bank's customers, accounts, and loans, including adding customers, accounts, and loan records, and retrieving details by customer or account identifiers.

  • Module Pre-compilation3:27

    Python compiles each module to bytecode in the __pycache__ folder on import, so later imports reuse precompiled .pyc files unless the source timestamp is newer.

  • Namespace & __name__9:55

    Use the dunder __name__ to run code only when the program starts directly, and understand how imports, namespaces, and from import affect module versus current program scope.

  • Error Handling in Python14:00

    Master graceful error handling in Python with try-except-else and raise statements, using built-in exceptions to manage edge cases and prevent production crashes.

  • File Handling17:09

    Master file handling and basic debugging in Python for data engineering, and explore multithreading concepts while manipulating csv and json files.

  • CSV & JSON module13:37

    Master the CSV module to read and write CSV files using csv.reader and csv.writer, including delimiter and code character; then learn the JSON module for serialization with dumps and loads.

  • Python Multi-threading concept17:37

    Explore how Python uses multithreading to run code in parallel by creating threads with the threading module, starting them, and joining to wait for completion.

  • Multi-threading hands-on and exercise22:01

    Develop multi-threading in Python by running five threads to read files in parallel, and aggregate sums by payment method at the end.

  • Debugging & Profiling18:26

    Master debugging and profiling in Python using breakpoints, print statements, and PyCharm or VS Code, and use cProfile and memory_profiler to measure time and memory.

Requirements

  • Python (Good to have)

Description

In this course I will show you how to create Web Services or APIs using Python and its Flask Library. I will also cover multiple application scenarios like connecting to databases (SQL and NoSQL) and perform CRUD operations, read from files, building multiple APIs that communicate with each other. At the end of the course I will build a very simple Web Application using HTML and Python Flask.

The course has 3 sections - i) Python Basics; ii) Python Flask; iii) Projects

For APIs with databases I will use PostgreSQL, DynamoDB and Redis to showcase the application patterns. Scenario based hands-on will perform multiple operations and at the end there would be projects on the same. I will also show you how to use "Postman" tool to send API requests and receive responses.

This course will contain 5 different projects that have to be completed by the candidates. Resources for those projects will be given in the course itself. Following is one of the project snippet (There will be a total of 5 projects):


  1. Use Postman to send request to one API

  2. That API will call 3 different APIs

  3. Out of 3, one would connect to MySQL, another would connect to DynamoDB and the final one would connect to an external API.

  4. Finally the results have to be consolidated and sent to client


Who this course is for:

  • Beginner Python Developers, Data Engineers wanting to explore the application world, Solution Architects, Technical Managers