Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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