sudo apt update
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
curl https://pyenv.run | bash
For Users of the Bash Shell
echo -e 'export PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'eval "$(pyenv init --path)"\neval "$(pyenv init -)"' >> ~/.bashrc
For Zsh Shell Users
echo -e 'export PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo -e 'eval "$(pyenv init --path)"\neval "$(pyenv init -)"' >> ~/.zshrc
exec "$SHELL"
pyenv --version
brew update
brew install pyenv
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
exec "$SHELL"
pyenv --version
pyenv install 3.12.8
pyenv virtualenv 3.12.8 fastapi_with_tartiflette_asgi
echo fastapi_with_tartiflette_asgi > .python-version
pip install poetry
poetry install --no-root
uvicorn main:app --reload
alembic revision --autogenerate -m "Initial Migration"
alembic upgrade head
http://127.0.0.1:8000/graphql