Imad Muratspahic

Command-Line Tools in Python

Argument Parsing, Subcommands, Configuration, Output Formatting, Exit Codes, Testing and Distributing Your Tool. Empfohlen von 0 bis 99 Jahre
EAN 9783565978120
Familienlizenz Family Sharing
24,99 €
inkl. MwSt.
69 Seiten
Oktober 2026
neobooks

Your script works for you. Now a colleague, a scheduler and a pipeline need to run it, and none of them can read your source. This book turns a script into a tool other people and programs can trust. Follow one running example, a stock tracker for a small shop, from the first parser to an installable package. Parse arguments and subcommands with argparse, merge settings from flags, environment variables, files and defaults, print tables or JSON and CSV, handle pipes and standard input, design exit codes that mean something, log with verbosity levels, compare the same tool in click, test it at three levels, and ship a wheel that installs a real command. Every listing was run and every output shown is real.

Imad Muratspahic is an independent author of practical how-to guides, technical handbooks, history and fiction. The books aim to be clear, honest and useful from the first page.

Sie können dieses eBook zum Beispiel mit den folgenden Geräten lesen:
• tolino Reader 
Laden Sie das eBook direkt über den Reader-Shop auf dem tolino herunter oder übertragen Sie das eBook auf Ihren tolino mit einer kostenlosen Software wie beispielsweise Adobe Digital Editions. 
• Sony Reader & andere eBook Reader 
Laden Sie das eBook direkt über den Reader-Shop herunter oder übertragen Sie das eBook mit der kostenlosen Software Sony READER FOR PC/Mac oder Adobe Digital Editions auf ein Standard-Lesegeräte. 
• Tablets & Smartphones 
Möchten Sie dieses eBook auf Ihrem Smartphone oder Tablet lesen, finden Sie hier unsere kostenlose Lese-App für iPhone/iPad und Android Smartphone/Tablets. 
• PC & Mac 
Lesen Sie das eBook direkt nach dem Herunterladen mit einer kostenlosen Lesesoftware, beispielsweise Adobe Digital Editions, Sony READER FOR PC/Mac oder direkt über Ihre eBook-Bibliothek in Ihrem Konto unter „Meine eBooks“ -  „Sofort online lesen über Meine Bibliothek“.
 
Bitte beachten Sie, dass die Kindle-Geräte das Format nicht unterstützen und dieses eBook somit nicht auf Kindle-Geräten lesbar ist.