bipinkc19 / decorators-and-mixin-classes

Presentation examples for Decorators and Mixin Classes in Python

Home Page:https://slides.com/sagarchamling/decorators-and-mixin-classes-in-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decorators and Mixin Classes in Python

This presenation is about the compositional pattern in Python using Decorators and Mixin Classes. It will focus on how we could utilize compositional pattern in python using ideas of higher order functions and mixin classes. It also goes beyond decorators and into the world of Mixin classes for the advanced compositional pattern by manipulating "method resolution order" in order to achieve the abstractions. See presentation here.

Requirement

  • Python (v3.6+)
  • virtualenv

Installation

  • sudo apt install python3-venv # optional

  • git clone git@github.com:cham11ng/decorators-and-mixin-classes.git

  • python3.6 -m venv venv

  • . venv/bin/activate

  • pip install -r requirements.txt

Getting Started

  • FLASK_ENV=development FLASK_APP=main.py flask run

Contributor

cham11ng | 2019

Special Thanks to RobusGauli

About

Presentation examples for Decorators and Mixin Classes in Python

https://slides.com/sagarchamling/decorators-and-mixin-classes-in-python


Languages

Language:Python 100.0%