djouallah opened a new issue, #2490:
URL: https://github.com/apache/iceberg-python/issues/2490

   ### Feature Request / Improvement
   
   currently to connect to onelake, you use something like this, which seems to 
have a lot of reduandancy
   
   
   ```
   from   pyiceberg.catalog import load_catalog
   catalog = load_catalog("onelake", **{
       "uri"                       :                   onelake_endpoint, 
       "token"                     :                   
os.environ.get('AZURE_STORAGE_TOKEN'), 
       "warehouse"                 :                   f"{ws}/{lh}.lakehouse",
       "adls.account-name"         :                   onelake ,
       "adls.account-host"         :                   
f"{onelake}.blob.fabric.microsoft.com" ,
       "adls.token"                :                   
os.environ.get('AZURE_STORAGE_TOKEN') ,
   })
   catalog.list_tables(schema)
   ```
   in an ideal world, something like this will be nice
   
   ```
   from   pyiceberg.catalog import load_onelake
   catalog = load_onelake(warehouse_path)
   ```
   
   


-- 
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]

Reply via email to