• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 185 páginas
Presentación

Hands-On Python for DevOps

Document preview thumbnail
Vista previa 4 fuera de 185 páginas

"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."

Vista previa del contenido

,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

Información del documento

Subido en
9 de agosto de 2024
Número de páginas
185
Escrito en
2017/2018
Tipo
Presentación
Personaje
Desconocido
$5.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
225
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes