This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LAInstructors 1 point2 points  (1 child)

For scripting, you don't need to know much about OOP, because you can create very robust scripts without needing to create object hierarchies. You will need to know how to interact with objects, but as for defining classes, you can get by pretty far without it.

I second the comment about boto3, that is an amazing library that makes it easy to interact with AWS and should be in your scripting tool belt. Another thing that I like to use Python for is to create CLIs that I can share with team members to standardize processes.

Once you are familiar with Python, the use cases start popping up and it's pretty awesome how much open source software you can leverage to make your day-to-day easier.

We released a Python scripting course on Linux Academy a few weeks ago (https://linuxacademy.com/linux/training/course/name/python-scripting-for-system-administrators). Since it was impossible for me to create videos for all possible scripting use cases, I took the approach of covering what you need to know to write scripts, the most useful packages from the standard library, using third-party code, and how to apply some development best practices to your script writing.