Type annotations for boto3.Health 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-health
Type annotations for boto3.Health 1.14.0 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 Health
service.
python -m pip install boto3-stubs[health]
Use boto3
with mypy_boto3_health
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_health import HealthClient
# Now mypy can check if your code is valid.
client: HealthClient = boto3.client("health")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: HealthClient = session.client("health")
# Annotated paginators are included as well
import mypy_boto3_health.paginator as health_paginators
describe_affected_accounts_for_organization_paginator: health_paginators.DescribeAffectedAccountsForOrganizationPaginator = client.get_paginator("describe_affected_accounts_for_organization")
describe_affected_entities_paginator: health_paginators.DescribeAffectedEntitiesPaginator = client.get_paginator("describe_affected_entities")
describe_affected_entities_for_organization_paginator: health_paginators.DescribeAffectedEntitiesForOrganizationPaginator = client.get_paginator("describe_affected_entities_for_organization")
describe_event_aggregates_paginator: health_paginators.DescribeEventAggregatesPaginator = client.get_paginator("describe_event_aggregates")
describe_event_types_paginator: health_paginators.DescribeEventTypesPaginator = client.get_paginator("describe_event_types")
describe_events_paginator: health_paginators.DescribeEventsPaginator = client.get_paginator("describe_events")
describe_events_for_organization_paginator: health_paginators.DescribeEventsForOrganizationPaginator = client.get_paginator("describe_events_for_organization")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_health
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("health")
session_client = boto3.Session().client("health")
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-health-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0beccd2750860eb55f1f9c9dc195739d7d84ae9c2306e9d655b2c41d004b8a2a |
|
MD5 | 3f6229a79f17f0760e4033f61bcb4ba7 |
|
BLAKE2b-256 | 61abe216a4b8efad077fbe7295757978b0c5ee99b9ed1194f0703639c3304441 |
Hashes for mypy_boto3_health-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e488d4bec3abf4014020b161d457242983d9ecb3d3d073ae432a9f096d65f455 |
|
MD5 | 1ae7a99c33cfaa29224d80b82f5a101e |
|
BLAKE2b-256 | da97f83f51194618f50530f4973e82be4e05ad24d7ec73dc12abf42599d804c7 |