简体   繁体   中英

Use botocore to list content of S3 bucket

I need to list files of the S3 bucket. But in the project we don't want to create new dependencies and use boto3. Instead, we want to use botocore.

Do you know how to implement this using Python if it is possible?

All AWS services expose REST API :

Thus you can use that, but using this means that you have to basically re-implement boto3 anyway, including authentication, all security protocols, exceptions. Off course you have to maintain it if S3 API changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM