What you will learn

Python basics and real world coding framework – organizing code, logging, error handling, config file, unit testing

Description

Learn how to code and unit test Python applications in a real world project. Go beyond the basics by solving a practical use case step by step. This course is designed for Python beginners who want to transition for academic background to a real world developer role !

Course Project :

You will be building a Python application to read data from files and store the data into PostgreSQL database. You will be creating REST endpoints using which external users will interact with your application data. All the industry standard best practices in terms of logging, error handling, config file, code structuring will be used in the application.

Course structure :

  • Python (3.9) and PyCharm IDE installation

  • Python basics – Get started with basic Python data types including List, Tuple and Dictionary

  • Organizing code with Classes and Modules – Understand core concepts of classes and packages

  • Python logging – Implement logging using basic config and file config

  • Python error handling – Learn how to handle exceptions.

  • Python PostgreSQL database interaction – Understand how to read and write to PostgreSQL using psycopg2

  • Create REST API using Python – Learn to create APIs using Python Flask framework

  • Reading configuration from property file – Learn how to avoid hardcoding of configurable properties

  • Unit testing – Learn to test your application using unittest package

  • Unit testing – Learn to test your application using PyTest package

You will learn the above concepts by building a real world file processing application. No prior Python knowledge required.


Get Instant Notification of New Courses on our Telegram channel.


Prerequisites :

  • Basic programming skills

  • Basic knowledge of SQL queries

English
language

Content

Introduction

Introduction
What is Python?
Installing Python
Installing PyCharm
Creating a project in the main Python environment

Python getting started

Python basics
Python dictionary
Python List and Tuple

Organizing code, logging and error handling

Structuring code with classes and functions
Initializing variables with a constructor
Logging using basic config
Logging using file config
Having multiple loggers in an application
Error handling with try and except blocks

Reading configuration and database interaction

Reading properties from a configuration file
Installing PostgreSQL
Reading from and writing to Postgres
Organizing code further
Handling the unique key constraint error

Reading data from a JSON file and storing it in database

Reading data from a JSON file
Writing JSON file data to PostgreSQL

Creating REST APIs

What is REST?
Understanding how REST will be used in the application
Creating a REST API to fetch course list
Creating a REST API to store course information

Unit testing

Python unittest package
Data and error testing
Unit testing with PyTest

Where to go from here?

Where to go from here?