Building Python CLI Apps with Click

所在平台: Udemy

课程主页: https://www.udemy.com/course/building-python-cli-apps-with-click/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:使用 Click 构建 Python CLI 应用程序 课程概述:本课程是一个以实践和示例为主的课程,旨在教授学员如何构建基于 Python 的命令行界面(CLI)应用程序和工具。CLI 程序是一种强大的工具,用于自动化从简单到复杂的多种任务,从而使用户摆脱重复的琐碎活动,最终提高生产力和工作质量。本课程介绍的 Click 库使 Python 开发者能够构建丰富的 CLI 工具,同时所需的代码量显著少于常规 Python 标准库或其他编程语言。参与本课程后,学员将能深入理解如何构建处理常见参数和选项类型(如字符串、数字、标志和 I/O 源)的 CLI 程序。此外,学员还将学习如何收集用户输入(包括普通文本和隐藏输入),以及如何组合带有子命令的嵌套程序。为了促进高质量的软件开发实践,课程还强调如何利用 Click 库的一些实用功能为 CLI 应用程序编写自动化测试。 课程涵盖的主题包括: - Click CLI 应用程序的设置和安装 - 单个和多个参数程序 - 使用选项控制 CLI 程序的行为 - 以提示的形式收集用户输入 - 使用子命令构建嵌套程序 - 在嵌套命令之间传递共享上下文 - 实现进度条以表示已完成的工作 - 使用彩色文本美化 CLI 程序输出 - 测试 CLI 程序以确保质量 本课程适合希望提升开发技能并了解如何使用 Click 库构建高效 CLI 工具的学员。

课程评论(0条)

课程详情

This is a practical, example heavy, course on building Python based Command Line Interface (CLI) applications and utility programs. Such CLI programs are powerful tools used to automate a wide range of simple to complex tasks which frees users from repetitive mundane activities ultimately increasing productivity along with quality of work. The Click library featured in this course empowers Python software developers with the ability to build rich CLI tools while requiring significantly less code than what's possible with the regular Python standard library or other programming languages. After participating in this course viewers should have a strong grasp of building CLI programs that work with all common argument and parameter options types like string, numbers, flags and I/O sources. Students will also learn to collect user input in the form of plain text and hidden (aka masked) input prompts, compose nested programs with sub commands. To facilitate high quality software development practices emphasis is also placed on how to write automated tests with your CLI applications harnessing some very useful features of the Click library that simplify writing tests.Below is a list of the topics that are covered in this course.Setup and Install of Click CLI ApplicationsSingle and Multiple Argument ProgramsUsing Options to Control CLI Program BehaviorCollecting User Input in the form of PromptsComposing Nested Programs with SubcommandsPassing Shared Context Between Nested CommandsImplementing Progress Bars to Convey Work CompletedStyling CLI Program Output with Colored TextTesting CLI Programs to Ensure Quality

课程标签

0人关注该课程

主题相关的课程