<a id="mypy-boto3-translate"></a>
# mypy-boto3-translate
[![PyPI - mypy-boto3-translate](https://img.shields.io/pypi/v/mypy-boto3-translate.svg?color=blue)](https://pypi.org/project/mypy-boto3-translate)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-translate.svg?color=blue)](https://pypi.org/project/mypy-boto3-translate)
[![Docs](https://img.shields.io/readthedocs/mypy-boto3-builder.svg?color=blue)](https://mypy-boto3-builder.readthedocs.io/)
[![PyPI - Downloads](https://img.shields.io/pypi/dw/mypy-boto3-translate?color=blue)](https://pypistats.org/packages/mypy-boto3-translate)
![boto3.typed](https://github.com/vemel/mypy_boto3_builder/raw/master/logo.png)
Type annotations for
[boto3.Translate 1.19.3](https://boto3.amazonaws.com/v1/documentation/api/1.19.3/reference/services/translate.html#Translate)
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-builder 6.0.2](https://github.com/vemel/mypy_boto3_builder).
More information can be found on
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
[mypy-boto3-translate docs](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_translate/)
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-translate](#mypy-boto3-translate)
- [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)
- [Literals](#literals)
- [Typed dictionaries](#typed-dictionaries)
- [Versioning](#versioning)
- [Documentation](#documentation)
- [Support and contributing](#support-and-contributing)
<a id="how-to-install"></a>
## How to install
Install `boto3-stubs` for `Translate` service.
```bash
python -m pip install boto3-stubs[translate]
```
<a id="usage"></a>
## Usage
<a id="vscode"></a>
### 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[translate]` in your environment:
`python -m pip install 'boto3-stubs[translate]'`
Both type checking and auto-complete should work for `Translate` service. No
explicit type annotations required, write your `boto3` code as usual.
<a id="pycharm"></a>
### PyCharm
- Install `boto-stubs[translate]` in your environment:
`python -m pip install 'boto3-stubs[translate]'`
Both type checking and auto-complete should work for `Translate` 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.
<a id="other-ides"></a>
### Other IDEs
Not tested, but as long as your IDE supports `mypy` or `pyright`, everything
should work.
<a id="mypy"></a>
### mypy
- Install `mypy`: `python -m pip install mypy`
- Install `boto-stubs[translate]` in your environment:
`python -m pip install 'boto3-stubs[translate]'`
- Run `mypy` as usual
Type checking should work for `Translate` service. No explicit type annotations
required, write your `boto3` code as usual.
<a id="pyright"></a>
### pyright
- Install `pyright`: `yarn global add pyright`
- Install `boto-stubs[translate]` in your environment:
`python -m pip install 'boto3-stubs[translate]'`
- Optionally, you can install `boto3-stubs` to `typings` folder.
Type checking should work for `Translate` service. No explicit type annotations
required, write your `boto3` code as usual.
<a id="explicit-type-annotations"></a>
## Explicit type annotations
<a id="client-annotations"></a>
### Client annotations
`TranslateClient` provides annotations for `boto3.client("translate")`.
```python
import boto3
from mypy_boto3_translate import TranslateClient
client: TranslateClient = boto3.client("translate")
# 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: TranslateClient = session.client("translate")
```
<a id="paginators-annotations"></a>
### Paginators annotations
`mypy_boto3_translate.paginator` module contains type annotations for all
paginators.
```python
from mypy_boto3_translate import TranslateClient
from mypy_boto3_translate.paginator import (
ListTerminologiesPaginator,
)
client: TranslateClient = boto3.client("translate")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_terminologies_paginator: ListTerminologiesPaginator = client.get_paginator("list_terminologies")
```
<a id="literals"></a>
### Literals
`mypy_boto3_translate.literals` module contains literals extracted from shapes
that can be used in user code for type checking.
```python
from mypy_boto3_translate.literals import (
EncryptionKeyTypeType,
JobStatusType,
ListTerminologiesPaginatorName,
MergeStrategyType,
ParallelDataFormatType,
ParallelDataStatusType,
TerminologyDataFormatType,
ServiceName,
PaginatorName,
)
def check_value(value: EncryptionKeyTypeType) -> bool:
...
```
<a id="typed-dictionaries"></a>
### Typed dictionaries
`mypy_boto3_translate.type_defs` module contains structures and shapes
assembled to typed dictionaries for additional type checking.
```python
from mypy_boto3_translate.type_defs import (
AppliedTerminologyTypeDef,
CreateParallelDataRequestRequestTypeDef,
CreateParallelDataResponseTypeDef,
DeleteParallelDataRequestRequestTypeDef,
DeleteParallelDataResponseTypeDef,
DeleteTerminologyRequestRequestTypeDef,
DescribeTextTranslationJobRequestRequestTypeDef,
DescribeTextTranslationJobResponseTypeDef,
EncryptionKeyTypeDef,
GetParallelDataRequestRequestTypeDef,
GetParallelDataResponseTypeDef,
GetTerminologyRequestRequestTypeDef,
GetTerminologyResponseTypeDef,
ImportTerminologyRequestRequestTypeDef,
ImportTerminologyResponseTypeDef,
InputDataConfigTypeDef,
JobDetailsTypeDef,
ListParallelDataRequestRequestTypeDef,
ListParallelDataResponseTypeDef,
ListTerminologiesRequestRequestTypeDef,
ListTerminologiesResponseTypeDef,
ListTextTranslationJobsRequestRequestTypeDef,
ListTextTranslationJobsResponseTypeDef,
OutputDataConfigTypeDef,
PaginatorConfigTypeDef,
ParallelDataConfigTypeDef,
ParallelDataDataLocationTypeDef,
ParallelDataPropertiesTypeDef,
ResponseMetadataTypeDef,
StartTextTranslationJobRequestRequestTypeDef,
StartTextTranslationJobResponseTypeDef,
StopTextTranslationJobRequestRequestTypeDef,
StopTextTranslationJobResponseTypeDef,
TermTypeDef,
TerminologyDataLocationTypeDef,
TerminologyDataTypeDef,
TerminologyPropertiesTypeDef,
TextTranslationJobFilterTypeDef,
TextTranslationJobPropertiesTypeDef,
TranslateTextRequestRequestTypeDef,
TranslateTextResponseTypeDef,
UpdateParallelDataRequestRequestTypeDef,
UpdateParallelDataResponseTypeDef,
)
def get_structure() -> AppliedTerminologyTypeDef:
return {
...
}
```
<a id="versioning"></a>
## Versioning
`mypy-boto3-translate` version is the same as related `boto3` version and
follows [PEP 440](https://www.python.org/dev/peps/pep-0440/) format.
<a id="documentation"></a>
## Documentat
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
最新资源
- SAP采购管理:采购订单‘交货已完成’标识的实际应用
- comsol模拟不同形状晶粒的煤体、岩体、土体的水力压裂、煤层压裂相场本构模型,内含不同尺寸的骨料、晶粒 案例文件众多,包含不同尺寸方形晶粒、圆形晶粒、椭圆形晶粒、微小晶粒等
- 电子插针精密焊接生产线sw17可编辑全套技术资料100%好用.zip
- C++课程设计-人事管理系统(源码+TXT数据+报告).zip
- 基于SpringBoot的广工大招生信息邮箱推送系统设计源码
- 永磁同步电机扰动观测器无位置传感器控制,该方法仅需要根据反电动势估计结果进行一次反正切计算即可得到转子位置,只需要设计一个观测器增益,非常好调试,没有PLL等位置观测器,参数整定简单 模型控制器部分
- 基于Vue和TypeScript的在线医院预约挂号平台设计源码
- 端子压接机sw20全套技术资料100%好用.zip
- SAP系统物料分割评估应用及配置
- 多履带举升机器人sw18可编辑全套技术资料100%好用.zip
- 1 基于PLC的3*4立体车库系统设计 资料齐全 共有3*4,12个车位可以使用 并且这12个车位共同使用一个载车板 对于需要存放或者取出的车辆的载车板经由升降横移运动将其运送到地面层,车主只需通
- 基于Yjs、Quill、LuckySheet的Markdown、TXT、Excel多人在线协同编辑设计源码
- 基于JavaScript、CSS、HTML技术的群内刷屏休闲小游戏(doge)设计源码
- 【数据驱动的非线性动力学代码整理】 1、相空间重构的时间延迟与嵌入维数代码,互信息法和假近邻法 2、时序信号的分形维数,多重分形谱,近似熵,赫斯特指数,最大李雅普诺夫指数,Lyapunov指数 3、随
- 基于C++的局域网文件交换通讯程序设计源码
- 基于Java开发的人事管理系统设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈