What is the current behavior?
On a local machine, initial connection with snowflake.connector.connect takes more than 10 seconds because of detect_platforms (in Auth.base_auth_data()).
What is the desired behavior?
Check whether the code is running on a local machine before trying to detect the cloud platform.
How would this improve snowflake-connector-python?
This would reduce the connection time from more than 10 seconds to about 1 second.
References and other background
Python 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Windows-11-10.0.26100-SP0
snowflake-connector-python==4.0.0