Type annotations for boto3.Personalize 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-personalize
Type annotations for boto3.Personalize 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Personalize
service.
python -m pip install boto3-stubs[personalize]
Use boto3
with mypy_boto3_personalize
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_personalize import PersonalizeClient
# Now mypy can check if your code is valid.
client: PersonalizeClient = boto3.client("personalize")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: PersonalizeClient = session.client("personalize")
# Annotated paginators are included as well
import mypy_boto3_personalize.paginator as personalize_paginators
list_batch_inference_jobs_paginator: personalize_paginators.ListBatchInferenceJobsPaginator = client.get_paginator("list_batch_inference_jobs")
list_campaigns_paginator: personalize_paginators.ListCampaignsPaginator = client.get_paginator("list_campaigns")
list_dataset_groups_paginator: personalize_paginators.ListDatasetGroupsPaginator = client.get_paginator("list_dataset_groups")
list_dataset_import_jobs_paginator: personalize_paginators.ListDatasetImportJobsPaginator = client.get_paginator("list_dataset_import_jobs")
list_datasets_paginator: personalize_paginators.ListDatasetsPaginator = client.get_paginator("list_datasets")
list_event_trackers_paginator: personalize_paginators.ListEventTrackersPaginator = client.get_paginator("list_event_trackers")
list_recipes_paginator: personalize_paginators.ListRecipesPaginator = client.get_paginator("list_recipes")
list_schemas_paginator: personalize_paginators.ListSchemasPaginator = client.get_paginator("list_schemas")
list_solution_versions_paginator: personalize_paginators.ListSolutionVersionsPaginator = client.get_paginator("list_solution_versions")
list_solutions_paginator: personalize_paginators.ListSolutionsPaginator = client.get_paginator("list_solutions")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_personalize
and other installed services.
# 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 expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("personalize")
session_client = boto3.Session().client("personalize")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-personalize-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5434b52339356f272bc10a12930c7abf3ff6232a900d41827520517cc71ca59f |
|
MD5 | 6cbf7832a256632bd3f3b8e62e7aedf7 |
|
BLAKE2b-256 | aeb460fead8858015e317378af796a2dcb79a85f8e1c77cfceff933a000d34c5 |
Hashes for mypy_boto3_personalize-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71f55c630d746ed86069700db8b1362d5cc4f2c713b9068e5bb0b633d28a91c |
|
MD5 | c705a54581892a120a7e4a402ee79d16 |
|
BLAKE2b-256 | cba5bbf6b2e490a56d203eb955008ff6f953c4ead789a685134a3690d6888d54 |