Books+ Search Results

Hands-On Python for DevOps Leverage Python's Native Libraries to Streamline Your Workflow and Save Time with Automation

Title
Hands-On Python for DevOps [electronic resource] : Leverage Python's Native Libraries to Streamline Your Workflow and Save Time with Automation.
ISBN
9781835081495
1835081495
1835081169
9781835081167
Published
Birmingham : Packt Publishing, Limited, 2024.
Physical Description
1 online resource (220 p.)
Local Notes
Access is available to the Yale community.
Notes
Description based upon print version of record.
Sample 1: Running fleet maintenance on multiple instance fleets at once
Access and use
Access restricted by licensing agreement.
Summary
Unleash DevOps excellence with Python and its ecosystem of tools for seamless orchestration on both local and cloud platforms, such as GCP, AWS, and AzureKey FeaturesIntegrate Python into DevOps for streamlined workflows, task automation, and improved collaborationCombine the principles of Python and DevOps into a unified approach for problem solving.
Variant and related titles
O'Reilly Safari. OCLC KB.
Other formats
Print version: Roy, Ankur Hands-On Python for DevOps Birmingham : Packt Publishing, Limited,c2024
Format
Books / Online
Language
English
Added to Catalog
April 02, 2024
Contents
Cover
Title Page
Copyright and Credits
Contributors
Table of Contents
Preface
Part 1: Introduction to DevOps and role of Python in DevOps
Chapter 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
Chapter 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
Chapter 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
Chapter 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
Managing Kubernetes with Python
Summary
Part 2: Sample Implementations of Python in DevOps
Chapter 5: Manipulating Resources
Technical requirements
Event-based resource adjustment
Edge location-based resource sharing
Testing features on a subset of users
Analyzing data
Analysis of live data
Analysis of historical data
Refactoring legacy applications
Optimize
Refactor
Restart
Summary
Chapter 6: Security and DevSecOps with Python
Technical requirements
Securing API keys and passwords
Store environment variables
Extract and obfuscate PII
Validating and verifying container images with Binary Authorization
Incident monitoring and response
Running runbooks
Pattern analysis of monitored logs
Summary
Chapter 7: Automating Tasks
Automating server maintenance and patching
Citation

Available from:

Online
Loading holdings.
Unable to load. Retry?
Loading holdings...
Unable to load. Retry?