Це відео не доступне.
Перепрошуємо.

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

Поділитися
Вставка
  • Опубліковано 16 сер 2024
  • 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.blueantoin...
    - 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 UA-cam Series:
    www.blueantoin...
    About us:
    - Homepage: www.blueantoin...
    - Contact us: www.blueantoin...
    - Twitter: / blueantoinette_
    - Consulting Hour: www.blueantoin...
    Hashtags:
    #python #flask #oop #api

КОМЕНТАРІ • 2

  • @asdfasdf28595
    @asdfasdf28595 7 місяців тому

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

    • @BlueAntoinette
      @BlueAntoinette  7 місяців тому

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