# mypy-boto3-organizations
Mypy-friendly auto-generated type annotations for `boto3 organizations 1.10.28` service.
More information can be found [here](https://github.com/vemel/mypy_boto3).
- [mypy-boto3-organizations](#mypy-boto3-organizations)
- [How to use](#how-to-use)
- [Type checking](#type-checking)
- [Code auto-complete](#code-auto-complete)
- [How it works](#how-it-works)
## How to use
### Type checking
Make sure you have [mypy](https://github.com/python/mypy) installed ans activated in your IDE.
Install `boto3-stubs` for `organizations` service.
```bash
pip install boto3-stubs[mypy-boto3-organizations]
```
Use `boto3` as usual in your project and enjoy type checking.
```python
import boto3
# Use this client as usual, now mypy can check if your code is valid.
client = boto3.client("organizations")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client = session.client("organizations")
```
### Code auto-complete
Not a single Python IDE supports `Literal` type overloads yet (but in `VSCode` support is just around the corner).
Meanwhile, to have a nice auto-complete you can explicitly set types to help your IDE to get methods, arguments etc.
```python
import boto3
from mypy_boto3.organizations import Client
from mypy_boto3.organizations.paginator import ListAWSServiceAccessForOrganizationPaginator
# now you have auto-complete for methods, arguments and even return types
client: Client = boto3.client("organizations")
# even for paginators
list_aws_service_access_for_organization_paginator: ListAWSServiceAccessForOrganizationPaginator = client.get_paginator("list_aws_service_access_for_organization")
```
## How it works
Fully automated [builder](https://github.com/vemel/mypy_boto3) carefully generates
type annotations for each service, patiently waiting for `boto3` updates. It delivers
a drop-in type annotations for you and makes sure that:
- Latest version of `boto3` is used.
- Each public class and method of every `boto3` service gets valid type annotations
extracted from latest documentation (blame `botocore` docs if types are incorrect).
- Type annotations include up-to-date documentation.
- Code is processed by [black](https://github.com/psf/black) for readability.
PyPI 官网下载 | mypy-boto3-organizations-0.2.9.tar.gz
版权申诉
150 浏览量
2022-02-13
12:19:39
上传
评论
收藏 68KB GZ 举报
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
最新资源
- base.apk
- Vue 结合 D3.js 进行数据可视化开发的练手案例.zip
- 语音模块使用说明_jr6001调试工具.html
- 毕业设计-reat18货物运输后台管理系统
- Qt tcp通信(exe)
- tensorflow-gpu-2.7.3-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-2.8.0-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.4-cp39-cp39-manylinux2010-x86-64.whl
- HTML后台管理系统源49套合集 H5模板源码下载 总有一款适合你 静态页面
- DDColor-PDF文献
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈