Type annotations for boto3.Personalize 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee2a12ade3dee01a823d7f7d580f46a539db4d93dfed0f062a145153647a9201 |
|
MD5 | 54abf86895cd966f6b56ef07c04152f6 |
|
BLAKE2b-256 | df8d440226a98f8b811b81aa93a1850473460bb84b578c0fdce2282f93674bb0 |
Hashes for mypy_boto3_personalize-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd160ecab1ca745b8cb1003ae86c8f2fd50a2de1bc356e43024afdaab4aa585d |
|
MD5 | 0cc7b877ea192e03fac2cb9a1539cee0 |
|
BLAKE2b-256 | b6aab5f6f8d03c07953033ee4169cdf77d8f192e1b85040828024b51eb5ccd69 |