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
