Description
Currently, the Mftool class does not support customizing SSL certificate verification during initialization. This can cause issues when working behind corporate proxies or in environments with custom SSL certificates.
Proposed Solution
Add a verify parameter to the Mftool.__init__() method, similar to how it's implemented in the requests.Session API. This would allow users to control SSL certificate verification behavior.
Example Implementation
class Mftool:
def __init__(self, verify: bool | str = True):
"""
:param verify: bool or str, passed to requests.Session.verify to control SSL verification.
True (default) verifies SSL certs, False disables verification.
Can also be a path to a CA bundle file.
"""
self._session = requests.Session()
self._session.verify = verify
# ... rest of initialization
Description
Currently, the
Mftoolclass does not support customizing SSL certificate verification during initialization. This can cause issues when working behind corporate proxies or in environments with custom SSL certificates.Proposed Solution
Add a
verifyparameter to theMftool.__init__()method, similar to how it's implemented in therequests.SessionAPI. This would allow users to control SSL certificate verification behavior.Example Implementation