Type annotations for boto3.GuardDuty 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-guardduty
Type annotations for boto3.GuardDuty 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 GuardDuty
service.
python -m pip install boto3-stubs[guardduty]
Use boto3
with mypy_boto3_guardduty
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_guardduty import GuardDutyClient
# Now mypy can check if your code is valid.
client: GuardDutyClient = boto3.client("guardduty")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: GuardDutyClient = session.client("guardduty")
# Annotated paginators are included as well
import mypy_boto3_guardduty.paginator as guardduty_paginators
list_detectors_paginator: guardduty_paginators.ListDetectorsPaginator = client.get_paginator("list_detectors")
list_filters_paginator: guardduty_paginators.ListFiltersPaginator = client.get_paginator("list_filters")
list_findings_paginator: guardduty_paginators.ListFindingsPaginator = client.get_paginator("list_findings")
list_ip_sets_paginator: guardduty_paginators.ListIPSetsPaginator = client.get_paginator("list_ip_sets")
list_invitations_paginator: guardduty_paginators.ListInvitationsPaginator = client.get_paginator("list_invitations")
list_members_paginator: guardduty_paginators.ListMembersPaginator = client.get_paginator("list_members")
list_organization_admin_accounts_paginator: guardduty_paginators.ListOrganizationAdminAccountsPaginator = client.get_paginator("list_organization_admin_accounts")
list_threat_intel_sets_paginator: guardduty_paginators.ListThreatIntelSetsPaginator = client.get_paginator("list_threat_intel_sets")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_guardduty
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("guardduty")
session_client = boto3.Session().client("guardduty")
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-guardduty-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15fa6a065b6213c0b9d6c413d009a0b1cf5212cbdbd756ff1c46434fe4709369 |
|
MD5 | ae9515881bd9439cf5949a2095ddc5df |
|
BLAKE2b-256 | afea333720d725601b740cda100f898c47db4e3404ea4ac91997b6ca166c5af2 |
Hashes for mypy_boto3_guardduty-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39e1e162b59d69dc5c104417114bae31b68b8e82aa3f1e5eb5f46093515b7e6 |
|
MD5 | d46d0298ea1c67f84311a04889370856 |
|
BLAKE2b-256 | ce93f82f57223bb84a84b11472d1f6e6819d722faa746c4c3d4aa5f698652fb9 |