Claude API tutorial: your first app on a VPS
Get a Claude API key, secure it on Ubuntu 24.04, ship a Python log explainer with streaming, typed error handling, and real cost control.
Filtering by topic #python · clear
Get a Claude API key, secure it on Ubuntu 24.04, ship a Python log explainer with streaming, typed error handling, and real cost control.
Ubuntu and Rocky give you four ways to get Ansible. Pick by the Python on your managed hosts, since current ansible-core does not support Ubuntu 20.04 or EL8.
Ubuntu's own tools run on /usr/bin/python3, so never replace it. Run a newer Python beside it with uv, the deadsnakes PPA or Docker. Here is which to pick.
Install conda on Ubuntu Server with Miniforge: pin a release, check its checksum, install in batch mode, and run services from an environment by absolute path.
A fresh Ubuntu server blocks pip install with externally-managed-environment. Choose venv, pipx or uv by what you install, then point systemd at it.
Run Django in production on Ubuntu 24.04: uv or venv, Gunicorn on a Unix socket, a systemd unit, Nginx for TLS and static files, plus what breaks first.
What Django and Flask really cost on a 1 to 2 GB VPS: resident memory per gunicorn worker, and how many workers a small box can honestly run.