cloud-sql-python-connector 1.4.0__tar.gz → 1.4.1__tar.gz
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.
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/PKG-INFO +1 -1
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/PKG-INFO +1 -1
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/connector.py +1 -1
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/instance.py +4 -3
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/version.py +1 -1
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/LICENSE +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/README.md +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/SOURCES.txt +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/dependency_links.txt +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/namespace_packages.txt +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/not-zip-safe +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/requires.txt +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/cloud_sql_python_connector.egg-info/top_level.txt +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/__init__.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/__init__.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/__init__.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/__init__.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/asyncpg.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/exceptions.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/pg8000.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/py.typed +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/pymysql.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/pytds.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/rate_limiter.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/refresh_utils.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/connector/utils.py +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/setup.cfg +0 -0
- {cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloud-sql-python-connector
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: The Cloud SQL Python Connector is a library that can be used alongside a database driver to allow users with sufficient permissions to connect to a Cloud SQL database without having to manually allowlist IPs or manage SSL certificates.
|
|
5
5
|
Home-page: https://github.com/GoogleCloudPlatform/cloud-sql-python-connector
|
|
6
6
|
Author: Google LLC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloud-sql-python-connector
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: The Cloud SQL Python Connector is a library that can be used alongside a database driver to allow users with sufficient permissions to connect to a Cloud SQL database without having to manually allowlist IPs or manage SSL certificates.
|
|
5
5
|
Home-page: https://github.com/GoogleCloudPlatform/cloud-sql-python-connector
|
|
6
6
|
Author: Google LLC
|
|
@@ -255,7 +255,7 @@ class Instance:
|
|
|
255
255
|
self._current = self._schedule_refresh(0)
|
|
256
256
|
self._next = self._current
|
|
257
257
|
|
|
258
|
-
def force_refresh(self) -> None:
|
|
258
|
+
async def force_refresh(self) -> None:
|
|
259
259
|
"""
|
|
260
260
|
Forces a new refresh attempt immediately to be used for future connection attempts.
|
|
261
261
|
"""
|
|
@@ -263,8 +263,9 @@ class Instance:
|
|
|
263
263
|
if not self._refresh_in_progress.is_set():
|
|
264
264
|
self._next.cancel()
|
|
265
265
|
self._next = self._schedule_refresh(0)
|
|
266
|
-
# block all sequential connection attempts on the next refresh result
|
|
267
|
-
|
|
266
|
+
# block all sequential connection attempts on the next refresh result if current is invalid
|
|
267
|
+
if not await _is_valid(self._current):
|
|
268
|
+
self._current = self._next
|
|
268
269
|
|
|
269
270
|
async def _perform_refresh(self) -> InstanceMetadata:
|
|
270
271
|
"""Retrieves instance metadata and ephemeral certificate from the
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/__init__.py
RENAMED
|
File without changes
|
{cloud-sql-python-connector-1.4.0 → cloud-sql-python-connector-1.4.1}/google/cloud/sql/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|