# mypy-boto3-pinpoint
[](https://pypi.org/project/mypy-boto3-pinpoint)
[](https://pypi.org/project/mypy-boto3-pinpoint)
[](https://mypy-boto3-builder.readthedocs.io/)
Type annotations for
[boto3.Pinpoint 1.14.53](https://boto3.amazonaws.com/v1/documentation/api/1.14.53/reference/services/pinpoint.html#Pinpoint) service
compatible with [mypy](https://github.com/python/mypy), [VSCode](https://code.visualstudio.com/),
[PyCharm](https://www.jetbrains.com/pycharm/) and other tools.
Generated by [mypy-boto3-buider 2.4.0](https://github.com/vemel/mypy_boto3_builder).
More information can be found on [boto3-stubs](https://pypi.org/project/boto3-stubs/) page.
## How to install
Make sure you have [mypy](https://github.com/python/mypy) installed and activated in your IDE.
Install `boto3-stubs` for `Pinpoint` service.
```bash
python -m pip install boto3-stubs[pinpoint]
```
## How to use
### Client annotations
`PinpointClient` provides annotations for `boto3.client("pinpoint")`.
```python
import boto3
from mypy_boto3_pinpoint import PinpointClient
from mypy_boto3_pinpoint.type_defs import ADMChannelResponseTypeDef, ...
client: PinpointClient = boto3.client("pinpoint")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: PinpointClient = session.client("pinpoint")
```
### Typed dictionations
`mypy_boto3_pinpoint.type_defs` module contains structures and shapes assembled
to typed dictionaries for additional type checking.
```python
def get_structure() -> ADMChannelResponseTypeDef:
return {
...
}
```
## Dynamic type annotations
`mypy_boto3` command generates `boto3.client/resource` type annotations for
`mypy_boto3_pinpoint` and other installed services.
```bash
# Run this command after you add or remove service packages
python -m mypy_boto3
```
Generated type annotations provide overloads for `boto3.client` and `boto3.resource`,
`boto3.Session.client` and `boto3.Session.resource` functions,
so explicit type annotations are not needed.
- `mypy` supports function overloads as expected
- `PyCharm` also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installed
- `VSCode` does not currently support function overloads, use explicit type annotations
```python
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("pinpoint")
session_client = boto3.Session().client("pinpoint")
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:mypy-boto3-pinpoint-1.14.53.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论


























收起资源包目录




















共 16 条
- 1
资源评论


挣扎的蓝藻
- 粉丝: 15w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 国际工程的项目管理模式(1).docx
- 计算机与智能教育学院.docx
- 2023年全国计算机二级考试公共基础知识题库及答案.doc
- 微软公司招聘过程及经验.pptx
- 较好的人工智能PPT(PPT34页).ppt
- 国家开放大学电大《网络应用服务管理》机考第一套真题题库及答案.docx
- 维九度网络推广方案.pdf
- 基于单片机的智能家居防火防盗报警系统-毕业设计.doc
- 网络小说对中学生影响的调查报告.docx
- 项目管理惩罚条例.doc
- 网络营销之二外部优化的大方法.pptx
- 高端商务写字楼项目管理标准化情况汇报(11页-图文丰富).ppt
- 电子商务进农村解决方案.doc
- 高校后勤会计信息化的建构【精品发布】.doc
- 阳光公司网络系统规划设计实习报告.pdf
- 中国电信无线网络应急指导手册.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
