使Botocore适应粘贴
botocore_paste的Python项目详细描述
用于botocore.session.get_session()
的实用程序安装
来自PYPI:
pip install botocore_paste
来源:
$ pip install -e .
如何使用
如果您使用pyramid:
import botocore_paste def main(global_config, **settings): boto_session = botocore_paste.session_from_config(settings) config = Configurator(settings=settings) # Some your configuration return config.make_wsgi_app()
配置键
请参阅botocore.session.Session的文档。
INI文件示例:
botocore.profile = botocore.region = botocore.data_path = botocore.config_file = ~/.aws/config botocore.ca_bunfle = botocore.credentials_file = ~/.aws/credentials botocore.metadata_service_timeout = 1 botocore.metadata_service_num_attempts = 1
并非所有密钥都是必需的。 如果不写任何键,botocore.session.Session实例是 由default创建。
更改历史记录
0.2-2016年4月4日
- 波托科尔=1.0
0.1.1-2015年4月1日
- 输入错误
0.1-2015年4月1日
- 初次发布。