Giter VIP home page Giter VIP logo

python-for-devops-april-2022's Introduction

Python application test with Github Actions [Python application test with Github Actions

python-for-devops-april-2022

This is a new repository for Python for DevOps Lecture/Workshop

Drawing-22 sketchpad

Scaffold

Drawing-23 sketchpad

  1. Create a Python Virtual Environment python3 -m venv ~/.venv or virtualenv ~/.venv
  2. Create empty files: Makefile, requirements.txt, main.py, Dockerfile, mylib/__init__.py
  3. Populate Makefile
  4. Setup Continuous Integration, i.e. check code for issues like lint errors

lint-failure

  1. Build cli using Python Fire library ./cli-fire.py --help to test logic

Containerized Continuous Delivery

Learn to build real-world Python Microservices that enable Continuous Delivery. This is a cool walkthrough because it is very similar to what someone would do at work building NLP Microservices on Amazon Web Services (AWS)

  • 00:00 Intro
  • 05:00 Scaffolding a project in Python
  • 08:00 Setup Virtualenv
  • 13:10 Building Makefile
  • 24:00 Setup Github Actions
  • 29:00 Formatting code with Python Black
  • 45:09 Test code with Pytest and Pytest Coverage
  • 50:30 Using Python Fire to build CLI
  • 59:30 Write Wikipedia scraper
  • 1:02:00 Use IPython to interact and debug code in Github Codespaces
  • 1:08:00 Pinning FastAPI version number
  • 1:12:00 Building FastAPI Microservice
  • 1:18:00 Using Text blob NLP service to parse phrases
  • 1:29:00 Debugging broken code
  • 1:34:00 Building container
  • 1:54:00 Setup AWS Code Build push to ECR (Elastic Container Registry)
  • 2:02:00 Setup AWS Code Build to ECR to AWS App Runner Continuous Delivery

Watch on Pragmatic AI Labs YouTube: https://lnkd.in/e5xHfaMG Watch on O'Reilly Media: https://lnkd.in/eAECgyCi

5-10-ecr-workflow

app-runner

python-for-devops-april-2022's People

Contributors

noahgift avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.