100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Presentation

Hands-On Python for DevOps

Rating
-
Sold
-
Pages
185
Uploaded on
09-08-2024
Written in
2017/2018

"Python stands out as a powerhouse in DevOps, boasting unparalleled libraries and support, which makes it the preferred programming language for problem solvers worldwide. This book will help you understand the true flexibility of Python, demonstrating how it can be integrated into incredibly useful DevOps workflows and workloads, through practical examples. You'll start by understanding the symbiotic relation between Python and DevOps philosophies and then explore the applications of Python for provisioning and manipulating VMs and other cloud resources to facilitate DevOps activities. With illustrated examples, you’ll become familiar with automating DevOps tasks and learn where and how Python can be used to enhance CI/CD pipelines. Further, the book highlights Python’s role in the Infrastructure as Code (IaC) process development, including its connections with tools like Ansible, SaltStack, and Terraform. The concluding chapters cover advanced concepts such as MLOps, DataOps, and Python’s integration with generative AI, offering a glimpse into the areas of monitoring, logging, Kubernetes, and more. By the end of this book, you’ll know how to leverage Python in your DevOps-based workloads to make your life easier and save time."

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
August 9, 2024
Number of pages
185
Written in
2017/2018
Type
Presentation
Person
Unknown

Subjects

Content preview

,Table of Contents
Preface
Part 1: Introduction to DevOps and role of Python in DevOps
1
Introducing DevOps Principles
Exploring automation

Automation and how it relates to the world

How automation evolves from the perspective of an operations engineer

Understanding logging and monitoring

Logging

Monitoring

Alerts

Incident and event response

How to respond to an incident (in life and DevOps)

Site reliability engineering

Incident response teams

Post-mortems

Understanding high availability

SLIs, SLOs, and SLAs

RTOs and RPOs

Error budgets

,How to automate for high availability?

Delving into infrastructure as a code

Pseudocode

Summary

2
Talking about Python
Python 101

Beautiful-ugly/explicit-implicit

Simple-complex-complicated

Flat-nested/sparse-dense

Readability-special cases-practicality-purity-errors

Ambiguity/one way/Dutch

Now or never

Hard-bad/easy-good

Namespaces

What Python offers DevOps

Operating systems

Containerization

Microservices

A couple of simple DevOps tasks in Python

Automated shutdown of a server

Autopull a list of Docker images

, Summary

3
The Simplest Ways to Start Using DevOps in Python
Immediately
Technical requirements

Introducing API calls

Exercise 1 – calling a Hugging Face Transformer API

Exercise 2 – creating and releasing an API for consumption

Networking

Exercise 1 – using Scapy to sniff packets and visualize packet size over time

Exercise 2 – generating a routing table for your device

Summary

4
Provisioning Resources
Technical requirements

Python SDKs (and why everyone uses them)

Creating an AWS EC2 instance with Python’s boto3 library

Scaling and autoscaling

Manual scaling with Python

Autoscaling with Python based on a trigger

Containers and where Python fits in with containers

Simplifying Docker administration with Python
$4.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
RobertCuong

Get to know the seller

Seller avatar
RobertCuong Telecommunication
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
225
Last sold
-
GPON and WiFi

+ SDH solution based on Fujitsu/Alcatel/Huawei devices in deployment and troubleshoot + Switching and Routing network fundamental and advance + GPON solution with deep knowledge of PLOAM/OMCI, activation procedure. Analysis of Private/Public OMCI + WiFi solution with WiFi Management/Control/Data. WiFi bandsteering, WiFi mesh, and WiFi 6, 6E, 7, ...

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions