This cannot be that difficult:
For simplicity sake:
I have two environments .env1 and .env2. The .env1 does a lot of work to come up with a value (process monitor), for the sake of ease to understand (between 1 and 1000).
.env2 (work horse) needs to know what work is to be done. Examp: 1= “dig hole”, 2=“hole is deep enough”, 3=“pull shovel out of hole”, 4=“pick up bush” Easy right?
tried to use python flask but setting up a server to simply serve up a 1,2,3 or 4 and a client to read the value is lots of overkill. Any Ideas would be helpful.
Thanks
this code works:
from flask import Flask
to_return = “Hello World this is the value I wish to change dynamically”app = Flask(_name_)
@app.route(“/”)def hello_world():
return to_returnif _name_ == “_main_”:
app.run(debug=True)