Fokko commented on code in PR #2072:
URL: https://github.com/apache/iceberg-python/pull/2072#discussion_r2137390052


##########
pyiceberg/catalog/rest/auth.py:
##########
@@ -109,6 +110,38 @@ def auth_header(self) -> str:
         return f"Bearer {self._token}"
 
 
+class GoogleAuthManager(AuthManager):
+    """
+    An auth manager that is responsible for handling Google credentials.
+    """
+
+    def __init__(self, credentials_path: Optional[str] = None, scopes: 
Optional[List[str]] = None):
+        """
+        Initialize GoogleAuthManager.
+
+        Args:
+            credentials_path: Optional path to Google credentials JSON file.
+            scopes: Optional list of OAuth2 scopes.
+        """
+        try:
+            import google.auth
+            import google.auth.transport.requests
+        except ImportError as e:
+            raise ImportError(
+                "Google Auth libraries not found. Please install 
'google-auth'."
+            ) from e

Review Comment:
   Should we define this [as an 
extra](https://github.com/apache/iceberg-python/blob/dea5f77709fbfca844705f25973e7416e62837b8/pyproject.toml#L291)?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to