A Python project with coding framework and unit testing

Real world python coding framework and unit testing - logging, error handling, config , database, PyTest , REST API

4.24 (174 reviews)
Udemy
platform
English
language
IT Certification
category
instructor
A Python project with coding framework and unit testing
8,370
students
2 hours
content
Jan 2024
last update
FREE
regular price

What you will learn

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

Why take this course?

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.

Prerequisites :

  • Basic programming skills

  • Basic knowledge of SQL queries


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?

Screenshots

A Python project with coding framework and unit testing - Screenshot_01A Python project with coding framework and unit testing - Screenshot_02A Python project with coding framework and unit testing - Screenshot_03A Python project with coding framework and unit testing - Screenshot_04

Reviews

Syed
September 26, 2023
The course content was undoubtedly valuable, I found that the speed of learning was exceptionally fast, which had both positive and challenging aspects.
Anita
February 23, 2022
Very useful course! Good basics for Python, postgres, REST, and unit testing. Sometimes it goes a little bit too fast, so I often paused and replayed parts to be able to follow along.
Nagendra
January 7, 2022
about unit testing module, course just covered too basics not even covering the test set up the teardown methods also no clear cut info on how does multiple test cases from multiple files can be triggered individually/in a group.
Bev
October 13, 2021
I enjoyed the hands-on aspect and everything worked as expected. The presenter knows what he is doing and conveyed it accurately. The small bite-sized chunks are ideal for learning.

Charts

Price

A Python project with coding framework and unit testing - Price chart

Rating

A Python project with coding framework and unit testing - Ratings chart

Enrollment distribution

A Python project with coding framework and unit testing - Distribution chart

Related Topics

3911462
udemy ID
3/13/2021
course created date
4/16/2021
course indexed date
Bot
course submited by