With multiple servers and multiple Citizen Developers, we would like to use a venv for Python instead of having to constantly update all the servers and Developers. Is this possible?
In theory, yes! Here’s my thought on it.
- I would build a REST web service on a web server.
- This REST web service would accept Python code as a parameter along with an array for other parameters (or a JSON message probably better).
- The web server would run the Python code and return the values back as the web service response.
This would keep the Python execution to just a single computer, accessible via REST web service.
The other question is… how frequently are you needing to update Python? Is every update needed? Also, depending on how much Python code you execute, have you considered restricting bots needing Python to just a single bot runner?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.