The Python Oracle

What is the difference between the AWS boto and boto3

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Forest of Spells Looping

--

Chapters
00:00 Question
00:31 Accepted answer (Score 220)
01:24 Thank you

--

Full question
https://stackoverflow.com/questions/3232...

Accepted answer links:
[boto]: https://github.com/boto/boto
[boto3]: https://github.com/boto/boto3
[botocore]: https://github.com/boto/botocore

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #amazonwebservices #boto #boto3

#avk47



ACCEPTED ANSWER

Score 221


The boto package is the hand-coded Python library that has been around since 2006. It is very popular and is fully supported by AWS but because it is hand-coded and there are so many services available (with more appearing all the time) it is difficult to maintain.

So, boto3 is a new version of the boto library based on botocore. All of the low-level interfaces to AWS are driven from JSON service descriptions that are generated automatically from the canonical descriptions of the services. So, the interfaces are always correct and always up to date. There is a resource layer on top of the client-layer that provides a nicer, more Pythonic interface.

The boto3 library is being actively developed by AWS and is the one I would recommend people use if they are starting new development.




ANSWER 2

Score 0


enter image description here

AWS Boto is a hand-coded Python library that was difficult to maintain and is no longer officially supported. AWS Boto3 is the official Python SDK for AWS, built on top of Botocore, and provides a cleaner and more Pythonic API.