mypy-boto3-personalize-runtime
Type annotations for boto3.PersonalizeRuntime 1.18.63 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 5.5.0.
More information can be found on boto3-stubs page and in mypy-boto3-personalize-runtime docs
See how it helps to find and fix potential bugs:
How to install
Install boto3-stubs for PersonalizeRuntime service.
python -m pip install boto3-stubs[personalize-runtime]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylanceas your Python Language Server - Install
boto-stubs[personalize-runtime]in your environment:python -m pip install 'boto3-stubs[personalize-runtime]'
Both type checking and auto-complete should work for PersonalizeRuntime
service. No explicit type annotations required, write your boto3 code as
usual.
PyCharm
- Install
boto-stubs[personalize-runtime]in your environment:python -m pip install 'boto3-stubs[personalize-runtime]'
Both type checking and auto-complete should work for PersonalizeRuntime
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 supports mypy or pyright, everything
should work.
mypy
- Install
mypy:python -m pip install mypy - Install
boto-stubs[personalize-runtime]in your environment:python -m pip install 'boto3-stubs[personalize-runtime]' - Run
mypyas usual
Type checking should work for PersonalizeRuntime service. No explicit type
annotations required, write your boto3 code as usual.
pyright
- Install
pyright:yarn global add pyright - Install
boto-stubs[personalize-runtime]in your environment:python -m pip install 'boto3-stubs[personalize-runtime]' - Optionally, you can install
boto3-stubstotypingsfolder.
Type checking should work for PersonalizeRuntime service. No explicit type
annotations required, write your boto3 code as usual.
Explicit type annotations
Client annotations
PersonalizeRuntimeClient provides annotations for
boto3.client("personalize-runtime").
import boto3
from mypy_boto3_personalize_runtime import PersonalizeRuntimeClient
client: PersonalizeRuntimeClient = boto3.client("personalize-runtime")
# 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: PersonalizeRuntimeClient = session.client("personalize-runtime")
Literals
mypy_boto3_personalize_runtime.literals module contains literals extracted
from shapes that can be used in user code for type checking.
from mypy_boto3_personalize_runtime.literals import (
ServiceName,
)
def check_value(value: ServiceName) -> bool:
...
Typed dictionaries
mypy_boto3_personalize_runtime.type_defs module contains structures and
shapes assembled to typed dictionaries for additional type checking.
from mypy_boto3_personalize_runtime.type_defs import (
GetPersonalizedRankingRequestRequestTypeDef,
GetPersonalizedRankingResponseTypeDef,
GetRecommendationsRequestRequestTypeDef,
GetRecommendationsResponseTypeDef,
PredictedItemTypeDef,
ResponseMetadataTypeDef,
)
def get_structure() -> GetPersonalizedRankingRequestRequestTypeDef:
return {
...
}
Versioning
mypy-boto3-personalize-runtime version is the same as related boto3 version
and follows PEP 440 format.
Documentation
All type annotations can be found in mypy-boto3-personalize-runtime docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Release files for mypy-boto3-personalize-runtime 1.18.63
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mypy-boto3-personalize-runtime-1.18.63.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mypy_boto3_personalize_runtime-1.18.63-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / mypy-boto3-personalize-runtime-1.18.63.tar.gz
| Download URL | mypy-boto3-personalize-runtime-1.18.63.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebed6ea350a05ac0916805da061c63f9576ef8b2bccf8e34127d6c48d95d9b93
|
|
BLAKE2b-256 checksum How to use checksums |
f0375ef60a3bd92656e8504a2e6529797b59dd1399d12d6e57dead9f8fbd40ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / mypy_boto3_personalize_runtime-1.18.63-py3-none-any.whl
| Download URL | mypy_boto3_personalize_runtime-1.18.63-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eb64c6b0af055627e3475957bb19b0f088f0fabf5b921461facfb91a8672d6d
|
|
BLAKE2b-256 checksum How to use checksums |
27149726b56cbade189f34d1a5f991102c279c55b6ba5de514bb3410a29f2705
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|