You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Configurations like timeout, proxy, and ssl_verify should be parameterised #885
Hi,
currently box-python-sdk is in "stable" state, what means that bugs will be fixed but there is no ongoing development of new features. So as long as this can be achieved by overriding the DefaultNetwork.request method we won't implement proposed enhancement.
Our new box Python SDK can be found here: https://github.com/box/box-python-sdk-gen. We are in the process of transitioning to fully generated SDK.
But going back to your issue, there is also another way to achieve this. You could add extra_network_parameters property to any API method and properties from there would be passed directly to request library call. For example to set a timeout for a call you can call: item.update_info(data=data, extra_network_parameters={'timeout': 1}).
I know this is not ideal, because you have to do it for each call, but maybe you can us somehow.
Best, @lukaszsocha2
Activity
lukaszsocha2 commentedon Dec 3, 2024
Hi,
currently
box-python-sdkis in "stable" state, what means that bugs will be fixed but there is no ongoing development of new features. So as long as this can be achieved by overriding the DefaultNetwork.request method we won't implement proposed enhancement.Our new box Python SDK can be found here: https://github.com/box/box-python-sdk-gen. We are in the process of transitioning to fully generated SDK.
But going back to your issue, there is also another way to achieve this. You could add
extra_network_parametersproperty to any API method and properties from there would be passed directly to request library call. For example to set a timeout for a call you can call:item.update_info(data=data, extra_network_parameters={'timeout': 1}).I know this is not ideal, because you have to do it for each call, but maybe you can us somehow.
Best,
@lukaszsocha2