Type annotations for boto3.Health 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-health
Type annotations for boto3.Health 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 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.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bdf3d3384fd2851d1a61d1f2f2cad8c31101b640b4ae93981fe426af6f827fc |
|
MD5 | 977cc066641b98367bff7b55ddceee82 |
|
BLAKE2b-256 | 8eac89ed41ac458a7fe909a55f1cd197e87b4e018a56a725c031112fe1de1978 |
Hashes for mypy_boto3_health-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff17943078ba405a2b677665eca170b75488630a30560bb566ea94d9e3b8f9f3 |
|
MD5 | cbd9ff5c362734f00ea849eb755024d1 |
|
BLAKE2b-256 | 8457cb1606bee3262229a9cfa3f08cd790b0540573626306c99c4dda76798ce9 |