kevinjqliu commented on issue #2514: URL: https://github.com/apache/iceberg-python/issues/2514#issuecomment-3336659554
+1 to what Fokko said. I think `load_catalog` can be helpful here https://github.com/apache/iceberg-python/blob/b63278bcae13f959a3c7d1dbb7b6caa3c7edf7c8/pyiceberg/catalog/__init__.py#L247-L248 `load_catalog` takes care of reading catalog configs, from `.pyiceberg.yaml`, ENV vars, and custom properties dict. I think this would work ``` secrets = {...} load_catalog(catalog_name, **{**catalog_configs, **secrets}) ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
