项目作者: sanspace

项目描述 :
Materials for 4 week Python training on Python, Flask, Django and PyTest
高级语言: Python
项目地址: git://github.com/sanspace/pyclassfeb21.git
创建时间: 2021-02-15T07:40:50Z
项目社区:https://github.com/sanspace/pyclassfeb21

开源协议:

下载


Python Class Q1 2021

Repository for Python Training of 4 weeks from mid Feb to Mar 2021.

Data Structures

  • Numbers
  • Strings
  • Lists

Control Flow Tools

  • if
  • for
  • range()
  • break, continue and else
  • pass

Functions

  • default args
  • keyword args
  • variable args
  • lambda expressions
  • docstrings
  • function annotations and type hints

Coding Style

  • Idiomatic Python
    • PEP 8
    • PEP 20

More Data Structures

  • More Lists
  • del
  • Tuples and Sequences
  • Sets
  • Dicts
  • Looping Techniques
  • Conditions
    • in, not in
    • chaining
    • and, or
  • comparing sequences

Modules

  • import syntax
  • modules as scripts
  • standard modules
  • packages
    • import syntax
  • intra package references

I/O

  • formatting
    • f-strings
  • format() method
    • positional
    • keyword
  • manual formatting
    • repr
    • rjust
    • ljust
    • center

Introduction to OOP

  • objects
  • classes
  • inheritance
  • instance and class

Exception Handling

  • Except
  • Raise
  • Custom

Python Design Patterns ( Advanced OOP )

  • Introduction

Built in modules discussion

  • Standard Lib
  • Cheese shop

Flask

  • REST Principles
  • Guide
  • REST framework

Django

  • Basics
  • REST framework

PyTest

  • Unit Testing
  • Parameterization
  • Options