Dependency Management
This document provides information about managing Python dependencies for the Physical AI Handbook backend.
Requirements Structure
The backend uses a structured approach to dependency management with separate requirement files for different purposes.
Installation
cd backend
pip install -r requirements.txt
Development Setup
For development with all testing and development tools:
pip install -r requirements/dev.txt
Best Practices
- Keep dependencies minimal and up-to-date
- Document why each dependency is needed
- Use version pinning for production stability
- Regularly audit dependencies for security vulnerabilities
- Test dependency updates in isolation before deployment
Updating Dependencies
- Update individual packages as needed
- Test thoroughly after updates
- Update requirements files
- Document any breaking changes