Skip to main content

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

  1. Update individual packages as needed
  2. Test thoroughly after updates
  3. Update requirements files
  4. Document any breaking changes