Type annotations for boto3.Personalize 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-personalize
Type annotations for boto3.Personalize 1.13.24 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_personalize
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_personalize as personalize
from mypy_boto3_personalize import PersonalizeClient
# with these
from mypy_boto3 import personalize
from mypy_boto3.personalize import PersonalizeClient
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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f833c2c811e255c8790346bf95ab53c1b66479764e25ca14e194d51ea03e7076 |
|
MD5 | 60bf0528ddd1fde7d4368e1f0a864a26 |
|
BLAKE2b-256 | eb9a47320c75cc239c4c51457701516bddbcee8a268579fe2f47a84d01a3965a |
Hashes for mypy_boto3_personalize-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a7867b6a5a91243fa289c0d83512b9bafc24dd470c0fce41155f56bc4034db |
|
MD5 | d091caaaec807a394b131ba860bb0d4e |
|
BLAKE2b-256 | ec21dbbbef5c02a195909054b5909716e37054ff11b61ff93a8b93d8d2d80186 |