devops

Using Python for DevOps tasks like automation, scripting, and infrastructure work.

Python ML Model Serving: From Notebook to Production API

You trained a model in a notebook and the accuracy looks great. Now your teammate asks, “Cool, how do I actually use it?” That question is where most models quietly die. This guide walks the Python ML model serving path from a saved notebook model to a live prediction API (Application Programming Interface): serialize the model with joblib, serve it with FastAPI, validate the incoming data with Pydantic, and version it so you can roll back when something breaks. “Most ... Read More

EDA: Exploratory Data Analysis Complete Workflow

Exploratory data analysis is the part everyone wants to skip and nobody should. Before you train a single model, you sit with the data and get to know it: load it, look at its shape, find the missing values, spot the outliers, and check which columns actually move together. This exploratory data analysis Python tutorial walks the full workflow on a realistic employee dataset, every number printed is real output from the code you see. “Fools ignore complexity. Pragmatists suffer ... Read More

Python: CI/CD for Python with GitHub Actions, Pre-commit, Automated Testing

You pushed a quick fix on Friday, all green on your laptop, and by Monday the app was down because you forgot to run the tests. GitHub Actions exists so that story never happens again. It runs your linting, type checking, and tests automatically on every push and pull request, then deploys only when everything passes. This guide builds a production-ready CI/CD (Continuous Integration and Continuous Deployment) pipeline step by step, plus pre-commit hooks and a Docker deploy job. “If ... Read More