I can see:
s = boto3.client('s3')
print(type(s))
prints
<class 'botocore.client.S3'>
But if I try
print(botocore.client.S3)
I get
AttributeError: module 'botocore.client' has no attribute 'S3'
How come?
Side note: My end goal is to return a mock that is speced to what botocore.client.S3 has to offer, but the technical aspect of what is being returned has alluded me for some time, and from knowing that, I'll probably know how to answer my ultimate question.
Through a bit of trial and error, found out the instance type that can be used:
>>> import boto3
>>> import botocore
>>> isinstance(boto3.client('s3'), botocore.client.BaseClient)
True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With