in client.py so I can import this library locally just by using this technique:https://stackoverflow.com/a/4383597? By doing it without the proposed modification I get an error because pythn-onvif is not installed. With it, it seems to work in both ways.
This little modification makes socks easy by inserting a custom
python-zeep
Transport object, which makes it easy to insert a socks proxy. This is a working example: https://github.com/lucaszanella/pycam/blob/65309f54c741f6561754d0bcecd868b891555a1b/pycam.py (just tweak the imports, I was using a locally modified one).By the way, wouldn't it be better to change
from onvif.exceptions import ONVIFError
to
from exceptions import ONVIFError
in
client.py
so I can import this library locally just by using this technique:https://stackoverflow.com/a/4383597? By doing it without the proposed modification I get an error because pythn-onvif is not installed. With it, it seems to work in both ways.