sfq 0.0.8__py3-none-any.whl → 0.0.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sfq/__init__.py CHANGED
@@ -70,7 +70,7 @@ class SFAuth:
70
70
  access_token: Optional[str] = None,
71
71
  token_expiration_time: Optional[float] = None,
72
72
  token_lifetime: int = 15 * 60,
73
- user_agent: str = "sfq/0.0.8",
73
+ user_agent: str = "sfq/0.0.9",
74
74
  proxy: str = "auto",
75
75
  ) -> None:
76
76
  """
@@ -84,7 +84,7 @@ class SFAuth:
84
84
  :param access_token: The access token for the current session (default is None).
85
85
  :param token_expiration_time: The expiration time of the access token (default is None).
86
86
  :param token_lifetime: The lifetime of the access token in seconds (default is 15 minutes).
87
- :param user_agent: Custom User-Agent string (default is "sfq/0.0.8").
87
+ :param user_agent: Custom User-Agent string (default is "sfq/0.0.9").
88
88
  :param proxy: The proxy configuration, "auto" to use environment (default is "auto").
89
89
  """
90
90
  self.instance_url = instance_url
@@ -130,12 +130,8 @@ class SFAuth:
130
130
  """
131
131
  if self.proxy:
132
132
  proxy_url = urlparse(self.proxy)
133
- conn_cls = (
134
- http.client.HTTPSConnection
135
- if proxy_url.scheme != "http"
136
- else http.client.HTTPConnection
137
- )
138
- conn = conn_cls(proxy_url.hostname, proxy_url.port)
133
+ logger.trace("Using proxy: %s", self.proxy)
134
+ conn = http.client.HTTPSConnection(proxy_url.hostname, proxy_url.port)
139
135
  conn.set_tunnel(netloc)
140
136
  logger.trace("Using proxy tunnel to %s", netloc)
141
137
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sfq
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Python wrapper for the Salesforce's Query API.
5
5
  Author-email: David Moruzzi <sfq.pypi@dmoruzi.com>
6
6
  Keywords: salesforce,salesforce query
@@ -0,0 +1,5 @@
1
+ sfq/__init__.py,sha256=TUhdE13kmM814DmbYgDHtQogRm461k17YKr7YKzBNho,15101
2
+ sfq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ sfq-0.0.9.dist-info/METADATA,sha256=DCsSMcv_Nzq2JJinOYzab8Q7MU0jjFQ27lGgMZjUnEI,5066
4
+ sfq-0.0.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ sfq-0.0.9.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- sfq/__init__.py,sha256=MlnlaJCHz4NgL_nudfa15Aman7LdgEtv-hY3G-M731E,15203
2
- sfq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- sfq-0.0.8.dist-info/METADATA,sha256=I1iwzWgydgwKKslNoZvc5y0VjPKytm1R5B1wLXm7VoY,5066
4
- sfq-0.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- sfq-0.0.8.dist-info/RECORD,,
File without changes