Type annotations for boto3.EventBridge 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-events
Type annotations for boto3.EventBridge 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 EventBridge
service.
python -m pip install boto3-stubs[events]
Use boto3
with mypy_boto3_events
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_events import EventBridgeClient
# Now mypy can check if your code is valid.
client: EventBridgeClient = boto3.client("events")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: EventBridgeClient = session.client("events")
# Annotated paginators are included as well
import mypy_boto3_events.paginator as events_paginators
list_rule_names_by_target_paginator: events_paginators.ListRuleNamesByTargetPaginator = client.get_paginator("list_rule_names_by_target")
list_rules_paginator: events_paginators.ListRulesPaginator = client.get_paginator("list_rules")
list_targets_by_rule_paginator: events_paginators.ListTargetsByRulePaginator = client.get_paginator("list_targets_by_rule")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_events
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("events")
session_client = boto3.Session().client("events")
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-events-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c9854b9e592a4854e9c62101ef6760560a637695b20151330b7f94f184f8530 |
|
MD5 | 642972cf641053f62d8aa4e78a45e81b |
|
BLAKE2b-256 | 1a1f7f04c8c2d419ca33b4f00af8d61f4118443ce8dcf0a530fe9137df9c7955 |
Hashes for mypy_boto3_events-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d02a0bca4a8fbd90211f314241229d9cadd1d4560bbefaefeeb496ddd367e143 |
|
MD5 | 0ca83f579484f979e8b42f71b1691d20 |
|
BLAKE2b-256 | b867a3088b7f52eab4ec0c025ae8cc2642a1e8145932f5b337388497bfa3390f |