For information on installing/configuring Python versions and packages (pip), see the Linux wiki's Python page.
Other code snippets can be found here: https://gitlab.com/whowe/python-snippets
Django
Flask