How to wrap a Python Flask App in a Class | Object Oriented Programming (OOP)

Ғылым және технология

In this episode we dive into Object Oriented Programming (OOP) with Python. In particular we show you how to wrap a Flask App in a python class. This is especially useful if you want to include Flask based APIs in your object oriented python app.
Chapters in this video:
0:00 - Intro and Explanation
00:39 - Setup and Virtual Environment
02:05 - Create Python Flask App (OOP)
02:50 - Property Decorator, Getter and Setter
04:09 - Constructor
04:31 - Register Endpoints, callback function, methods
05:54 - Implement Endpoint callback function
06:18 - Run function of wrapped Flask App
07:02 - Instantiate Flask Wrapper Class
07:55 - Run Flask app from Command Line
08:18 - Outro
Video related links:
- Mastering Python: www.blueantoinette.com/2023/1...
- Conda Setup Guide: • How to create a virtua...
- SSH into Remote VM with VS Code: • SSH into Remote VM wit...
Please support our effort and purchase the source code of the entire KZread Series:
www.blueantoinette.com/produc...
About us:
- Homepage: www.blueantoinette.com/
- Contact us: www.blueantoinette.com/contac...
- Twitter: / blueantoinette_
- Consulting Hour: www.blueantoinette.com/produc...
Hashtags:
#python #flask #oop #api

Пікірлер: 2

  • @asdfasdf28595
    @asdfasdf285956 ай бұрын

    thanks for the video! is the source anywhere e.g. github?

  • @BlueAntoinette

    @BlueAntoinette

    6 ай бұрын

    You are welcome. Yes, the source code is on my site at www.blueantoinette.com/2023/11/02/mastering-python/

Келесі