Pascal Jahan Elahi (Pawsey)
01/16/2025, 7:08 AMget_client()Marvin
01/16/2025, 7:09 AMget_client() function in Prefect is used to obtain a client for interacting with the Prefect API. It takes the following parameters:
- httpx_settings (optional): A dictionary of settings to configure the HTTPX client.
- `sync_client`: A boolean indicating whether to return a synchronous client. Defaults to False.
It returns either a SyncPrefectClient or a PrefectClient, depending on the sync_client parameter.
For more details, you can explore the Prefect documentation (though, unfortunately, I can't provide a direct link to the exact page).