|
1 |
| -# python-for-devops |
2 |
| -Learn Python from DevOps Engineer point of you. |
| 1 | +# Python Zero to Hero for DevOps Engineers |
| 2 | + |
| 3 | +## Day 1: Introduction to Python, Installation, and Configuration |
| 4 | +- Introduction to Python and its role in DevOps. |
| 5 | +- Installing Python and setting up a development environment. |
| 6 | +- Writing your first Python program. |
| 7 | + |
| 8 | +## Day 2: Working with Strings and Numbers |
| 9 | +- String data type in Python. |
| 10 | +- String manipulation and formatting. |
| 11 | +- Regular expressions for text processing. |
| 12 | +- Numeric data types in Python (int, float). |
| 13 | + |
| 14 | +## Day 3: Variables |
| 15 | +- Understanding variables in Python. |
| 16 | +- Variable scope and lifetime. |
| 17 | +- Variable naming conventions and best practices. |
| 18 | +- Practice exercises and examples: |
| 19 | + - Example: Using variables to store and manipulate configuration data in a DevOps context. |
| 20 | + |
| 21 | +## Day 4: Functions, Modules and Packages |
| 22 | +- What are differences between function, modules and packages ? |
| 23 | +- How to import a package ? |
| 24 | +- What are Python workspaces ? |
| 25 | + |
| 26 | +## Day 5: Environment Variables and Command Line Arguments |
| 27 | +- Reading and writing environment variables in Python. |
| 28 | +- Using the os and dotenv modules. |
| 29 | +- Securing sensitive information in environment variables. |
| 30 | +- Handling command line arguments in Python. |
| 31 | +- Practice exercises and examples: |
| 32 | + - Example: Developing a Python script that accepts command line arguments to customize DevOps automation tasks. |
| 33 | + |
| 34 | +## Day 6: Operators |
| 35 | +- Introduction to operators in Python. |
| 36 | +- Arithmetic, comparison, and logical operators. |
| 37 | +- Bitwise and assignment operators. |
| 38 | +- Practice exercises and examples: |
| 39 | + - Example: Using operators to perform calculations and comparisons in a DevOps script. |
| 40 | + |
| 41 | +## Day 7: Conditional Handling using if, elif and else |
| 42 | +- Conditional statements (if, elif, else). |
| 43 | +- Practice exercises and examples: |
| 44 | + - Example: Automating a server shutdown if it's running out of disk space. |
| 45 | + |
| 46 | +## Day 8: Working with Lists (Part 1) |
| 47 | +- Understanding lists and list data structure. |
| 48 | +- List manipulation and common list operations. |
| 49 | +- Practice exercises and examples: |
| 50 | + - Example: Writing a script to manage a list of user accounts in a DevOps environment. |
| 51 | + |
| 52 | +## Day 9: Loops |
| 53 | +- Loops in Python (for and while). |
| 54 | +- Loop control statements (break, continue). |
| 55 | +- Practice exercises and examples: |
| 56 | + - Example: Automating a log file analysis with a loop to find errors. |
| 57 | + |
| 58 | +## Day 10: Working with Lists (Part 2) |
| 59 | +- List comprehensions. |
| 60 | +- Nested lists and advanced list operations. |
| 61 | +- Practice exercises and examples: |
| 62 | + - Example: Parsing a complex configuration file with nested lists. |
| 63 | + |
| 64 | +## Day 11: Working with Dictionaries and Sets |
| 65 | +- Dictionaries and key-value pairs. |
| 66 | +- Sets and set operations. |
| 67 | +- Practice exercises and examples: |
| 68 | + - Example: Managing a dictionary of server configurations and optimizing retrieval. |
| 69 | + |
| 70 | +## Day 12: Functions and Modules |
| 71 | +- Introduction to functions in Python. |
| 72 | +- Writing functions and function parameters. |
| 73 | +- Return values and modular code. |
| 74 | +- Practice exercises and examples: |
| 75 | + - Example: Creating a function to automate server status checks. |
| 76 | + |
| 77 | +## Day 13: Functions and Modules (Part 2) |
| 78 | +- Advanced function topics (recursion, lambda functions). |
| 79 | +- Function libraries and built-in functions. |
| 80 | +- Practice exercises and examples: |
| 81 | + - Example: Developing a library of custom functions for DevOps automation. |
| 82 | + |
| 83 | +## Day 14: Python Libraries for DevOps (Part 1) |
| 84 | +- Introduction to external libraries like Paramiko, Fabric, and Boto3. |
| 85 | +- Automating SSH connections with Paramiko. |
| 86 | +- Running commands on remote servers. |
| 87 | +- Practice exercises and examples: |
| 88 | + - Example: Using Paramiko to create a secure remote backup solution. |
| 89 | + |
| 90 | +## Day 15: Python Libraries for DevOps (Part 2) |
| 91 | +- Using Fabric for remote task automation. |
| 92 | +- AWS automation with Boto3. |
| 93 | +- Managing EC2 instances, S3 buckets, and more. |
| 94 | +- Practice exercises and examples: |
| 95 | + - Example: Creating a Fabric script for deploying applications to remote servers. |
| 96 | + |
| 97 | +## Day 16: Working with RESTful APIs |
| 98 | +- Introduction to RESTful APIs. |
| 99 | +- Making HTTP requests using Python. |
| 100 | +- Parsing JSON responses and error handling. |
| 101 | +- Practice exercises and examples: |
| 102 | + - Example: Developing a script to monitor RESTful API endpoints for your DevOps tools. |
| 103 | + |
| 104 | +## Day 17: Data Serialization and Configuration Files |
| 105 | +- Serializing and deserializing data (JSON, YAML). |
| 106 | +- Managing configuration data. |
| 107 | +- DevOps use cases for configuration files. |
| 108 | +- Practice exercises and examples: |
| 109 | + - Example: Building a configuration manager to handle application settings in JSON format. |
| 110 | + |
| 111 | +## Day 18: Automation with Cron Jobs |
| 112 | +- Scheduling automated tasks using cron. |
| 113 | +- Creating Python scripts for scheduled automation. |
| 114 | +- Handling periodic tasks and reports. |
| 115 | +- Practice exercises and examples: |
| 116 | + - Example: Using cron and Python to schedule regular backups of your data. |
| 117 | + |
| 118 | +## Day 19: Python Interview Questions & Answers |
| 119 | + |
0 commit comments