文件名称:aioboto3:包装器将boto3资源与aiobotocore异步后端一起使用
文件大小:93KB
文件格式:ZIP
更新时间:2024-05-20 19:40:00
Python
异步适用于Python的AWS开发工具包 现在,.client和.resource函数必须用作异步上下文管理器。 现在,aiobotocore已达到版本1.0.1,这是修复各种问题(如存储区区域重定向和支持Web承担角色类型凭据)的工作的副作用,现在必须使用上下文管理器实例化客户端,通过扩展该实例适用于资源创建者。 您过去常常通过调用res = aioboto3.resource('dynamodb')但现在不再起作用。 如果您确实想这样做,则可以执行res = await aioboto3.resource('dynamodb').__aenter__()但是您需要记住要调用__aexit__ 。 我很可能会错过一些现在无法使用的零件,只需提出一个问题,我们就会尽快为您解决。 现在也必须异步创建服务资源,例如 async def main (): async with a
【文件预览】:
aioboto3-master
----setup.py(2KB)
----.gitignore(885B)
----Makefile(85B)
----.readthedocs.yml(112B)
----resources()
--------make_pr.py(3KB)
--------S3-CSE()
----MANIFEST.in(262B)
----.bumpversion.cfg(138B)
----LICENSE(11KB)
----HISTORY.rst(4KB)
----Pipfile.lock(56KB)
----setup.cfg(508B)
----.github()
--------ISSUE_TEMPLATE.md(335B)
--------workflows()
----README.rst(7KB)
----tests()
--------conftest.py(4KB)
--------test_patches.py(4KB)
--------test_dynamo.py(5KB)
--------test_basic.py(720B)
--------test_s3_cse.py(16KB)
--------mock_server.py(2KB)
--------test_s3.py(8KB)
----aioboto3()
--------dynamodb()
--------__init__.py(2KB)
--------resources()
--------session.py(9KB)
--------s3()
----Pipfile(450B)
----AUTHORS.rst(159B)
----CONTRIBUTING.rst(3KB)
----docs()
--------.gitignore(43B)
--------requirements.txt(30B)
--------Makefile(7KB)
--------index.rst(320B)
--------conf.py(8KB)
--------history.rst(28B)
--------authors.rst(28B)
--------installation.rst(1KB)
--------make.bat(6KB)
--------readme.rst(27B)
--------usage.rst(8KB)
--------cse.rst(5KB)
--------contributing.rst(33B)
----.editorconfig(292B)