DevOps Classroom notes 18/Oct/2025

Building inventory

  • We have implemented interactive cli refer here for change setRefer Here
  • As of this changeset the warehouse items are stored in dictionary, once the program is stopped all entries are lost, We can save the items in a file

Liskovs substitution principle

Duck typing

  • If it walks like a duck and it quacks like a duck, then it must be a duck.

Python context manager

Python file Manangemnt

  • In python we can manage two types of files
  • text
  • binary
  • Python standard library has built in method called as open which takes two arguments

Using csv files to store warehouse itmes

  • For each warehouse we will create a new csv file
  • Any operations done on warehouse will lead to csv file changes
  • Lets use pandas.
  • Activate the virtual environments
pip install pandas # pip
uv pip install pandas # uv
uv add pandas # uv

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%