requirements.txt file using uv or pip-tools.
Adding or Updating a python library is a 2 step process:
- Add library to the 
pyproject.tomlfile - Auto-Generate the 
requirements.txtfile 
We highly recommend auto-generating the 
requirements.txt file using this process.Update pyproject.toml
- Open the 
pyproject.tomlfile - Add new libraries to the dependencies section.
 
Generate requirements
After updating thedependencies in the pyproject.toml file, auto-generate the requirements.txt file using a helper script or running pip-compile directly.
Rebuild Images
After updating therequirements.txt file, rebuild your images.
Rebuild dev images
Rebuild production images
Remember to authenticate with ECR if needed.