Sorry, something of a python newbie.
I’m modified the publisher hook to execute some commands using an external Rest API.
I want to use the requests module to confirm that it is functional before continuing. For other self-contained modules I’ve made I’ve been able to follow the advice here:
But requests has lots of dependencies… and I’m not sure the best way to handle that.
I was able to install requests (and all dependencies) in a venv and the copy the contents of that site-packages into the hooks folder, and then use sys.path.append(os.path.dirname(file)) to import them all. But this doesn’t seem right to me… and I’m worried I’d cause conflicts down the line.
appreciate the insight!