Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building Useful Project Utils in Python

NDC Conferences via YouTube

Overview

Explore techniques for creating and maintaining project utilities in Python in this 51-minute conference talk. Learn how to transform simple scripts into robust, maintainable programs with unit tests and reusable components. Discover why Python excels at handling project-related tasks, from developer tools to release scripts. Gain insights into leveraging Python's standard library for improved code organization, command-line interfaces, and filesystem manipulation. Examine case studies demonstrating how to refactor existing shell scripts for better maintainability and extended functionality. Acquire practical skills for writing, growing, and testing Python utilities that can be easily imported or run via self-documenting command-line interfaces. Suitable for those with some Python familiarity, focusing on specific techniques applicable to large, embedded software projects.

Syllabus

Intro
Prerequisites
What scripts are we talking about?
Why is Python better? - Syntax
Why is Python better?-Data structures and types
Why is Python better? - Modularity
Code organization
Command-line interfaces in Python
Runting other programs from Python-subprocess
Manipulating the flesystem from Python-pathlib
Writing unit tests in Python-doctest
Writing unit tests in Python-unittest
Writing unit tests in Python - pytest
binst shell script
System with multiple devices
Summary

Taught by

NDC Conferences

Reviews

Start your review of Building Useful Project Utils in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.