Type annotations for boto3.GuardDuty 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-guardduty
Type annotations for boto3.GuardDuty 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 GuardDuty
service.
python -m pip install boto3-stubs[guardduty]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_guardduty
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_guardduty as guardduty
from mypy_boto3_guardduty import GuardDutyClient
# with these
from mypy_boto3 import guardduty
from mypy_boto3.guardduty import GuardDutyClient
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.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74905b0f4c0d9c4f1b210ff81e8899d43c646529f821cc066c99dbd264dddaa5 |
|
MD5 | 8fa97d4756e453038fcd0defa59d9a1a |
|
BLAKE2b-256 | ad54cc2e1aaeb7fe280afbe8cb3742fec4e22132b62dab79871b0c6dbb42bc7a |
Hashes for mypy_boto3_guardduty-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 243e404f5455c6e448a066558e4391d3c1beefadc23fcb1ea6fc89088aa57891 |
|
MD5 | 9d5552b67f6472038ef80070c1f6e069 |
|
BLAKE2b-256 | cd7273c45ba1eacd257accf6232c4635358339978ce99eadbe658a1219806646 |