Stack guide — Python
Python 3, pip, and virtual environments
Python 3 includes pip, setuptools, and packaging. The recommended workflow is to create a virtual environment for each application:
python3 -m venv /usr/local/venvs/myapp
source /usr/local/venvs/myapp/bin/activate
pip install flask gunicornThe virtual environment isolates your application and its dependencies in /usr/local/venvs/myapp. Nothing touches the system Python installation. To deactivate:
deactivateUseful packages for production servers:
- Web frameworks:
flask,django,fastapi,gunicorn,uvicorn - Data:
pymysql(MariaDB),psycopg2(compile separately for PostgreSQL) - Networking:
requests,httpx,aiohttp - System:
psutil,pyyaml,cryptography
pip installs packages into /usr/local. A virtual environment at /usr/local/venvs/myapp can be archived, moved to another Saphira machine, and activated. It runs without re‑installation because the Python interpreter and standard library are part of the Akadata base. Mount /usr/local from a separate volume or copy it between servers; where the Akadata base matches, the environment is usable as‑is.
