DevOps Classroom notes 11/Oct/2025

Python Standard Library

  • This refers to all the library available with python installation
  • Refer Here for standard library
  • Refer Here for using environmental variables in python
  • Dealing with paths
    • os.path
    • pathlib
  • shutil

Build a cli application

  • Design
calc <group> <command> [--argname value ...] [options]

  • group: Category (basic, scientific, financial)
  • command: Operation (add, pow, npv, fv)
  • keyword args: Named parameters instead of fixed positions (–num1 2 –num2 3)
  • options: Flags like –precision
calc basic add --num1 2 --num2 3
calc basic div --num1 10 --num2 3 --precision 2
  • Exercise:
    • Find out what getopt is .
    • How to build a cli in shell script calc.sh add 1 2
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Plugin for Social Media by Acurax Wordpress Design Studio
Exit mobile version
%%footer%%