Type annotations for boto3.Personalize 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.3.
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.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3393dd5b41e3d1706d3d842f338b7dce16e3d17c2585bb9125cefb5361a9d421 |
|
MD5 | 9be3330f2b01a463cdacdd4676d31aad |
|
BLAKE2b-256 | b1d17d530a204980b10908a946954f0131cb6a9de71eb6e726e4a23d6c425d27 |
Hashes for mypy_boto3_personalize-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350a21a7882620c75b24f020b68833f17ad1be9d0253db93635da6f1e9de7628 |
|
MD5 | 94c6f51dad21a91408407bf45727c8e9 |
|
BLAKE2b-256 | f08b45d7853f1668b7dab789d92f040f42c603130839f15d4074b3faff8b13ca |