# mypy-boto3-savingsplans
[![PyPI - mypy-boto3-savingsplans](https://img.shields.io/pypi/v/mypy-boto3-savingsplans.svg?color=blue)](https://pypi.org/project/mypy-boto3-savingsplans)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-savingsplans.svg?color=blue)](https://pypi.org/project/mypy-boto3-savingsplans)
[![Docs](https://img.shields.io/readthedocs/mypy-boto3-builder.svg?color=blue)](https://mypy-boto3-builder.readthedocs.io/)
![boto3.typed](https://github.com/vemel/mypy_boto3_builder/raw/master/logo.png)
Type annotations for
[boto3.SavingsPlans 1.16.45](https://boto3.amazonaws.com/v1/documentation/api/1.16.45/reference/services/savingsplans.html#SavingsPlans) service
compatible with
[VSCode](https://code.visualstudio.com/),
[PyCharm](https://www.jetbrains.com/pycharm/),
[Emacs](https://www.gnu.org/software/emacs/),
[Sublime Text](https://www.sublimetext.com/),
[mypy](https://github.com/python/mypy),
[pyright](https://github.com/microsoft/pyright)
and other tools.
Generated by [mypy-boto3-buider 4.3.1](https://github.com/vemel/mypy_boto3_builder).
More information can be found on [boto3-stubs](https://pypi.org/project/boto3-stubs/) page.
See how it helps to find and fix potential bugs:
![boto3-stubs demo](https://github.com/vemel/mypy_boto3_builder/raw/master/demo.gif)
- [mypy-boto3-savingsplans](#mypy-boto3-savingsplans)
- [How to install](#how-to-install)
- [Usage](#usage)
- [VSCode](#vscode)
- [PyCharm](#pycharm)
- [Other IDEs](#other-ides)
- [mypy](#mypy)
- [pyright](#pyright)
- [Explicit type annotations](#explicit-type-annotations)
- [Client annotations](#client-annotations)
- [Paginators annotations](#paginators-annotations)
- [Waiters annotations](#waiters-annotations)
- [Service Resource annotations](#service-resource-annotations)
- [Other resources annotations](#other-resources-annotations)
- [Collections annotations](#collections-annotations)
- [Typed dictionations](#typed-dictionations)
## How to install
Install `boto3-stubs` for `SavingsPlans` service.
```bash
python -m pip install boto3-stubs[savingsplans]
```
## Usage
### VSCode
- Install [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- Install [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
- Set `Pylance` as your Python Language Server
- Install `boto-stubs[savingsplans]` in your environment: `python -m pip install 'boto3-stubs[savingsplans]'`
Both type checking and auto-complete should work for `SavingsPlans` service.
No explicit type annotations required, write your `boto3` code as usual.
### PyCharm
- Install `boto-stubs[savingsplans]` in your environment: `python -m pip install 'boto3-stubs[savingsplans]'`
Both type checking and auto-complete should work for `SavingsPlans` service.
No explicit type annotations required, write your `boto3` code as usual.
Auto-complete can be slow on big projects or if you have a lot of installed `boto3-stubs` submodules.
### Other IDEs
Not tested, but as long as your IDE support `mypy` or `pyright`, everything should work.
### mypy
- Install `mypy`: `python -m pip install mypy`
- Install `boto-stubs[savingsplans]` in your environment: `python -m pip install 'boto3-stubs[savingsplans]'`
- Run `mypy` as usual
Type checking should work for `SavingsPlans` service.
No explicit type annotations required, write your `boto3` code as usual.
### pyright
- Install `pyright`: `yarn global add pyright`
- Install `boto-stubs[savingsplans]` in your environment: `python -m pip install 'boto3-stubs[savingsplans]'`
- Optionally, you can install `boto3-stubs` to `typings` folder.
Type checking should work for `SavingsPlans` service.
No explicit type annotations required, write your `boto3` code as usual.
## Explicit type annotations
### Client annotations
`SavingsPlansClient` provides annotations for `boto3.client("savingsplans")`.
```python
import boto3
from mypy_boto3_savingsplans import SavingsPlansClient
client: SavingsPlansClient = boto3.client("savingsplans")
# 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: SavingsPlansClient = session.client("savingsplans")
```
### Typed dictionations
`mypy_boto3_savingsplans.type_defs` module contains structures and shapes assembled
to typed dictionaries for additional type checking.
```python
from mypy_boto3_savingsplans.type_defs import (
CreateSavingsPlanResponseTypeDef,
DescribeSavingsPlanRatesResponseTypeDef,
DescribeSavingsPlansOfferingRatesResponseTypeDef,
DescribeSavingsPlansOfferingsResponseTypeDef,
DescribeSavingsPlansResponseTypeDef,
ListTagsForResourceResponseTypeDef,
ParentSavingsPlanOfferingTypeDef,
SavingsPlanFilterTypeDef,
SavingsPlanOfferingFilterElementTypeDef,
SavingsPlanOfferingPropertyTypeDef,
SavingsPlanOfferingRateFilterElementTypeDef,
SavingsPlanOfferingRatePropertyTypeDef,
SavingsPlanOfferingRateTypeDef,
SavingsPlanOfferingTypeDef,
SavingsPlanRateFilterTypeDef,
SavingsPlanRatePropertyTypeDef,
SavingsPlanRateTypeDef,
SavingsPlanTypeDef,
)
def get_structure() -> ParentSavingsPlanOfferingTypeDef:
return {
...
}
```
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
最新资源
- 证券投资交易分析系统(含源码+项目说明+文档资料+全部资料).zip
- 知识图谱医疗问答系统+前端展示源码(2024毕业设计).zip
- 在线教育培训管理系统(含源码+项目说明+功能模块介绍).zip
- 在线考试系统-基于SpringCloud+Vue3近期开发(遗传算法自动组卷、文本批量导入,含源码+项目说明+设计报告).zip
- 在线流量分类模型-基于CNN+LSTM时空神经网络(含源码+说明文档+设计报告).zip
- 云开发电影院订票小程序(微信小程序源码+项目说明+设计报告).zip
- 云计算实验-利用GitHub进行协作并编写YML测试用例实现持续集成(含文档).zip
- 年度死因数字数据集.zip
- 猜数字游戏,再来一次,点名器,定时器,体彩方案
- 基于Matlab图像识别技术的隐形眼镜镜片边缘缺陷检测源代码
- 在线NFT铸造平台-整合区块链、IPFS与React技术(含源码及设计文档).zip
- 运动想象脑电信号分类-基于Transformer(CNN+局部时间空间特征提取,含源码+项目说明).zip
- 游戏AI强化训练-深度强化学习实战源码(比赛项目).zip
- 游戏空战推演系统源码基于强化学习开发源码(期末大作业).zip
- 期末课设-员工信息管理系统-基于Qt+SQLite数据库(含源码+项目说明+设计报告).zip
- 玉米病害与害虫识别系统源码+农业智能应用报告(课程设计).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈