Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 2.47 KB

README.md

File metadata and controls

69 lines (43 loc) · 2.47 KB

Python Continuous Integration Badge

[AWS CodeBuild Badge

python-for-devops-2022

python-for-devops-2022

YouTube Python Devops Tutorial with Noah Gift

Python-for-Devops

You can get a copy of the book here.

YouTube

You can view the full YouTube video here.

Creating Overview

Create project scaffold

Creating a cloud based development environment such as:

  • Colab Notebook: Here is an example of how to use Colab

Important Components

  • Makefile
  • Requirements.txt
  • test_library.py
  • python_library
  • Dockerfile
  • CLI
  • Microservices
1. Create files and folders
* touch Makefile
* touch requirements.txt
* mkdir devopslib && touch devopslib/__init__.py
* touch hello.py && touch test_hello.py
2. Create a virtual environment
* python3 -m venv .venv
* source ~/.venv/bin/activate
3. Edit Bash
* vim ~/.bashrc
* source ~/.venv/bin/activate

4. Final step

* clone project and run `make all`

Create CLI (Command Line Tools)

  • Create CLI with pyhton fire
  • run pyhton hello.py with flag --beverage muffins

Create Microservices

Containerized Continuous Delivery

  • Using AWS App Runner and CodeBuild