AWS boto和boto3有什么区别 [英] What is the difference between the AWS boto and boto3

查看:210
本文介绍了AWS boto和boto3有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Python的AWS的新手,我正在尝试学习boto API,但是我注意到有两个Python的主要版本/软件包.那将是boto和boto3.

AWS boto库和boto3库之间有什么区别?

解决方案

boto 包就是手编码的Python库,自2006年以来一直存在.它非常流行,并且受到AWS的完全支持,但是由于它是手工编码的,并且有太多可用的服务(一直在不断出现),因此难以维护./p>

因此, boto3 是基于 解决方案

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.

这篇关于AWS boto和boto3有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆