Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Modern Python Solutions - Part 3
Rating: 2.0 out of 5(1 rating)
77 students

Modern Python Solutions - Part 3

The latest in modern Python recipes for the busy programmer
Last updated 5/2017
English
English [Auto],

What you'll learn

  • Get acquainted with advanced programming techniques in Python
  • Equip yourself to work with web services
  • Write proper tests to be sure a program works as advertised
  • Integrate application software using Python

Course content

3 sections • 23 lectures • 3h 24m total length
  • The Course Overview3:25

    This video provides an overview of the entire course.

  • Using docstring for Testing10:17

    Good Python includes docstrings inside every module, class, function, and method. Many tools can create useful, informative documentation from the docstrings. How can we turn examples into proper test cases? Let's explore this question.

  • Testing Functions that Raise Exceptions4:09

    This video will show you how to turn exception processing and the resulting traceback messages into proper test cases.

  • Handling Common doctest Issues6:11

    Doctest examples require an exact match with the text. How can we write doctest examples that handle hash randomization or floating-point implementation details appropriately? This video will enable you to answer this question.

  • Creating Separate Test Modules and Packages4:34

    This video will show you how you could create more sophisticated tests.

  • Combining the unittest and doctest Tests4:39

    This video shows how we can combine all of the various tests into one tidy package.

  • Testing Things that Involve Dates and Time5:41

    Many applications rely on datetime.datetime.now() to create a timestamp. When we use this with a unit test, the results are essentially impossible to predict. How can we work with datetime stamps? Let's look into this.

  • Testing Things That Involve Randomness6:07

    Many times we create random values or put values into random order. In many statistical tests, repeated random shuffling or random subset calculations are done. Let's see how we can unit test algorithms that involve randomness.

  • Mocking External Resources14:13

    How can we create more sophisticated mock objects that have internal state and make their own internal state changes? Let's dive into these questions.

Requirements

  • Basic knowledge of Python programming is assumed.

Description

Python is the preferred choice of developers, engineers, data scientists, and hobbyists everywhere. It is a great scripting language that can power your applications and provide great speed, safety, and scalability. By exposing Python as a series of simple recipes, you can gain insight into specific language features in a particular context. This video will arm you with the knowledge of creating applications with flexible logging, powerful configuration, and command-line options, automated unit tests, and good documentation. You will learn to use the Flask framework for Restful APIs. You will end the course equipped with the knowledge of testing, web services, and configuration and application integration tips and tricks.

About the Authors

Steven F. Lott has been programming since the 70s, when computers were large, expensive, and rare. As a contract software developer and architect, he has worked on hundreds of projects, from very small to very large. He's been using Python to solve business problems for over 10 years. He’s currently leveraging Python to implement microservices and ETL pipelines. His other titles with Packt Publishing include Python Essentials, Mastering Object-Oriented Python, Functional Python Programming, and Python for Secret Agents. Steven is currently a technomad who lives in various places on the east coast of the U.S.

Who this course is for:

  • The videos will benefit everyone ranging from beginner to an expert. The course is for web developers, programmers, enterprise programmers, engineers, big data scientist, and so on. If you are experienced, it will expand your knowledge base.