Type annotations for boto3.Health 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.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 Health
service.
python -m pip install boto3-stubs[health]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_health
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_health as health
from mypy_boto3_health import HealthClient
# with these
from mypy_boto3 import health
from mypy_boto3.health import HealthClient
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2662cedd8502d7251e9eaf074fe5958bc64fae71543417b5c4775bbd5c5548f5 |
|
MD5 | 69c2140ba368d721d442db9365ffd15b |
|
BLAKE2b-256 | 59766c6b6719b80f53017c40f0fe3aa838a0ab57189b7c8ae584386157441178 |
Hashes for mypy_boto3_health-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64db1f965194f1829405283bc067a3d0f2e270c2a91e129b003c957d1d1f6f01 |
|
MD5 | 9ca8774ba5a0e0590cac74cd40ffafaf |
|
BLAKE2b-256 | 4adc76a8da2b423a4cb7cdcf42097eb67fe32d38a7daa58a57acc760848c573a |