https://lh6.googleusercontent.com/tw7SQnfsgIS2BkUTX3LWchqcXV0W-UsUylhyeY7H98hitWCinQs_Ks_rKaP_RPY4oN5HMI9ea3QdUUoHmutTQLr7lcZz4wjPN-Wmtbg8Og1Bx89OYI1UEx49vTRxZS3OgoxJ66m3
Venv
- pip install venv
- Venv vs Docker
- Um virtualenv encapsula apenas dependências do Python. Um contêiner do Docker encapsula um sistema operacional inteiro. Com um virtualenv do Python, você pode alternar facilmente entre versões e dependências do Python, mas você fica preso no sistema operacional do host. ... Portanto, o Docker está muito mais próximo de uma máquina virtual do que do ambiente virtual
Dotenv
- pip install python-dotenv
Flask
Extensões
Flask-Wtf
- pip install flask-wtf
- Extensão do flask para suportar forms HTML
Instalação
Preparar ambiente
- Instalar pip
- apt-get install python-pip
- Criar ambiente virtual (venv)
- Criar um diretório para virtualizar : mkdir app
- Entrar no diretório criado : cd app