pip install poetry
poetry --version
poetry --help
poetry list
poetry self update # To update poetry
# To create a project OR to initialize the existing project
poetry new new_project
poetry init
# To get info about environement, you can change Python version from here too
poetry env info
# instead of pip install -r requirements.txt AND updating
poetry install # poetry lock - will not install, just will create a lock file
poetry update
# Alternative of "pip freeze"
poetry show --tree
# To add new dependency
poetry add "pygame>=2"
# To run the code
poetry shell # Then "python main.py"
# OR
poetry run python main.py
# To exit the venv
exit
deactivate
# To config Poetry
poetry config --list
# pre-commit hook
poetry check
# Search for libraries
poetry search requests pendulum
poetry cache list
poetry cache clear
# JFROG
poetry source show