• Stars
    star
    1,786
  • Rank 25,081 (Top 0.6 %)
  • Language
    Python
  • License
    MIT License
  • Created 7 months ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn Python from DevOps Engineer point of you.

Python Zero to Hero for DevOps Engineers

Screenshot 2023-10-12 at 9 57 40 PM

Day 1: Introduction to Python, Installation, and Configuration

  • Introduction to Python and its role in DevOps.
  • Installing Python and setting up a development environment.
  • Writing your first Python program.

Day 2: Intro to Datatypes, Working with Strings and Numbers

  • String data type in Python.
  • String manipulation and formatting.
  • Regular expressions for text processing.
  • Numeric data types in Python (int, float).

Day 3: Keywords and Variables

  • Understanding variables in Python.
  • Variable scope and lifetime.
  • Variable naming conventions and best practices.
  • Practice exercises and examples:
    • Example: Using variables to store and manipulate configuration data in a DevOps context.

Day 4: Functions, Modules and Packages

  • What are differences between function, modules and packages ?
  • How to import a package ?
  • What are Python workspaces ?

Day 5: Environment Variables and Command Line Arguments

  • Reading and writing environment variables in Python.
  • Using the os and dotenv modules.
  • Securing sensitive information in environment variables.
  • Handling command line arguments in Python.
  • Practice exercises and examples:
    • Example: Developing a Python script that accepts command line arguments to customize DevOps automation tasks.

Day 6: Operators

  • Introduction to operators in Python.
  • Arithmetic, comparison, and logical operators.
  • Bitwise and assignment operators.
  • Practice exercises and examples:
    • Example: Using operators to perform calculations and comparisons in a DevOps script.

Day 7: Conditional Handling using if, elif and else

  • Conditional statements (if, elif, else).
  • Practice exercises and examples:

Day 8: Working with Lists (Part 1)

  • Understanding lists and list data structure.
  • List manipulation and common list operations.
  • Practice exercises and examples:
    • Example: Writing a script to manage a list of user accounts in a DevOps environment.

Day 9: Loops

  • Loops in Python (for and while).
  • Loop control statements (break, continue).
  • Practice exercises and examples:
    • Example: Automating a log file analysis with a loop to find errors.

Day 10: Working with Lists (Part 2)

  • List comprehensions.
  • Nested lists and advanced list operations.
  • Practice exercises and examples:
    • Example: Print list of files in the list of folders provided

Day 11: Working with Dictionaries and Sets (Project-1)

  • Dictionaries and key-value pairs.
  • Sets and set operations.
  • Practice exercises and examples:
    • Example: Managing a dictionary of server configurations and optimizing retrieval.

Day 12: Python Tasks for DevOps (Part 1) - File Operations (Project-2)

  • Introduction to File Operations and Boto3.
  • Automating File operations.
  • Practice exercises and examples:
    • Example: Update a server resources in the server.conf file up on external notification.

Day 13: Python Tasks for DevOps (Part 2) (Project-3)

  • Using Fabric for remote task automation.
  • AWS automation with Boto3.
  • Managing EC2 instances, S3 buckets, and more.
  • Practice exercises and examples:
    • Example: Creating a aws script for deploying applications to remote servers.

Day 14: Github-JIRA intergration Project - (Project-4)

  • Introduction to RESTful APIs.
  • Making HTTP requests using Python.
  • Parsing JSON responses and error handling.
  • Practice exercises and examples:
    • Example: Write a Python API which listens on a github comment and creates a ticket in JIRA.

Day 15: Github-JIRA intergration Project - (Project-4) - (Part-2)

  • Introduction to Flask.
  • Write your first API in python.
  • How to handle API calls and deploy your API to a server.
  • Practice exercises and examples:
    • Example: Write a Python API which listens on a github comment and creates a ticket in JIRA.

Day 16: Python Interview Questions & Answers

  • Beginner and intermediate Level

Day 17: Python Interview Questions & Answers

  • Advanced Level

More Repositories

1

aws-devops-zero-to-hero

AWS zero to hero repo for devops engineers to learn AWS in 30 Days. This repo includes projects, presentations, interview questions and real time examples.
Python
4,817
star
2

Jenkins-Zero-To-Hero

Install Jenkins, configure Docker as slave, set up cicd, deploy applications to k8s using Argo CD in GitOps way.
Python
4,623
star
3

Docker-Zero-to-Hero

Repo to learn Docker with examples. Contributions are most welcome.
2,436
star
4

Azure-zero-to-hero

Repository to learn Azure from Zero. This repository covers the complete Azure fundamentals required for a DevOps Engineer.
HCL
1,646
star
5

terraform-zero-to-hero

Master Terraform in 7 days using this Zero to Hero course.
HCL
1,581
star
6

Kubernetes-Zero-to-Hero

Creating this repo with an intent to make Kubernetes easy for begineers. This is a work-in-progress repo.
1,028
star
7

prometheus-Grafana-Zero-to-Hero

[WIP]: Repo for learning how monitor your kubernetes clusters using prometheus and visualize using grafana
799
star
8

GitHub-Actions-Zero-to-Hero

Repository to kick start your journey with GitHub Actions
Python
777
star
9

shell-scripting-projects

Projects on shell scripting. Goal is to simulate real time projects as much as posible.
Shell
591
star
10

devops-interview-preparation-guide

Share your interview questions and help others. Let's build this interview preparation guide together.
446
star
11

cicd-end-to-end

Using this repo for an End to End CICD Demo
Python
337
star
12

write_your_first_terraform_project

helps you learn terraform and write your first project
HCL
320
star
13

devops-project-ideas

Real-time project ideas for devops engineers.
216
star
14

Golang-Zero-to-Hero

Learn golang with practical approach. TODO repo - work in progress
183
star
15

k8s-kyverno-argocd

Demo repository to enforce automated k8s cluster security using kyverno policy generator and argocd
145
star
16

sandbox

Just a sandbox
105
star
17

k8s-crossplane-argocd

Demonstrate GitOpsification of Cloud Infrastructure using Crossplane and Argo CD
98
star
18

argocd-hub-spoke-demo

Deploy resources to multiple kubernetes clusters using Argo CD.
96
star
19

design_diagrams

flowcharts, workflows and diagrams
83
star
20

cicd-demo-golang

Sample golang application to demonstrate CICD
Go
66
star
21

cis-istio-integration

Integration of F5 CIS Ingress Controller with Istio Service Mesh for Kubernetes and Openshift
Makefile
63
star
22

terraform-eks

A sample repository to create EKS with VPC on AWS using Terraform.
HCL
50
star
23

argo-perf-test

Repo for testing Argo CD Performance(This can be very vague)
46
star
24

officeassistant

Office Management Assistant During Covid19
JavaScript
31
star
25

cicd-demo-manifests-repo

Repo for CICD demo app kubernetes manifests
9
star
26

abhishek-shell-example-project

Shell scripting example project
7
star
27

AWS

AWS Lambda functions for Cloud-admins
Python
3
star
28

demo-repo

This repo is created for a demo
2
star
29

keycloak-stuff

Keycloak Installation and Configuration on K8s and OpenShift Container Platforms. Describes on how OpenShiftv4 Idp can be used as broker for openshift-gitops.
Go
1
star