Connect recently added a /lockfile api that allows the user to retrieve the state of requirements in use by connect.
This allows users to replicate an environment locally or on any other system.
rsconnect-python should expose a command to leverage the API and reuse the lockfile when deploying.