foundry_dev_tools.utils.async_s3 module#

Async custom foundry credential provider for aiobotocore.

Basically the same as foundry_dev_tools.utils.s3, except that it’s async this was needed for S3Fs to work, which is used by pandas.

class foundry_dev_tools.utils.async_s3.CustomAsyncFoundryCredentialProvider[source]#

Bases: SharedCredentialProvider

Boto3 credential provider for s3 credentials.

METHOD = 'foundry'#
CANONICAL_NAME = 'foundry'#
__init__(s3_client, session=None)[source]#
Parameters:
  • s3_client (S3Client)

  • session (aiobotocore.session.Session | None)

async load()[source]#

Return the credentials from FoundryRestClient.

Return type:

AioDeferredRefreshableCredentials