https://github.com/noahgift/python-for-devops-april-2022
This is a new repository for Python for DevOps Lecture/Workshop
https://github.com/noahgift/python-for-devops-april-2022
Last synced: 6 months ago
JSON representation
This is a new repository for Python for DevOps Lecture/Workshop
- Host: GitHub
- URL: https://github.com/noahgift/python-for-devops-april-2022
- Owner: noahgift
- Created: 2022-04-13T09:21:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T23:00:02.000Z (9 months ago)
- Last Synced: 2025-04-02T08:09:42.440Z (6 months ago)
- Language: Jupyter Notebook
- Size: 23.4 KB
- Stars: 39
- Watchers: 2
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/noahgift/python-for-devops-april-2022/actions/workflows/devops.yml)
[## 🎓 Pragmatic AI Labs | Join 1M+ ML Engineers
### 🔥 Hot Course Offers:
* 🤖 [Master GenAI Engineering](https://ds500.paiml.com/learn/course/0bbb5/) - Build Production AI Systems
* 🦀 [Learn Professional Rust](https://ds500.paiml.com/learn/course/g6u1k/) - Industry-Grade Development
* 📊 [AWS AI & Analytics](https://ds500.paiml.com/learn/course/31si1/) - Scale Your ML in Cloud
* ⚡ [Production GenAI on AWS](https://ds500.paiml.com/learn/course/ehks1/) - Deploy at Enterprise Scale
* 🛠️ [Rust DevOps Mastery](https://ds500.paiml.com/learn/course/ex8eu/) - Automate Everything### 🚀 Level Up Your Career:
* 💼 [Production ML Program](https://paiml.com) - Complete MLOps & Cloud Mastery
* 🎯 [Start Learning Now](https://ds500.paiml.com) - Fast-Track Your ML Career
* 🏢 Trusted by Fortune 500 TeamsLearn end-to-end ML engineering from industry veterans at [PAIML.COM](https://paiml.com)
# python-for-devops-april-2022
This is a new repository for Python for DevOps Lecture/Workshop
## Scaffold

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
5. 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 DeliveryWatch on Pragmatic AI Labs YouTube: https://lnkd.in/e5xHfaMG
Watch on O'Reilly Media: https://lnkd.in/eAECgyCi
