Type annotations for boto3.GuardDuty 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-guardduty
Type annotations for boto3.GuardDuty 1.13.25 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea9d5d7678c048fc6ffab1b14f59cd2e63954625ec3e52faffd5fa1b69123267 |
|
MD5 | a736d4bcf7c9194b9438ad3c4e59679f |
|
BLAKE2b-256 | 5384102db2dd19643613901ec05ce788a5d8de5dd38c35ccc32916604801538c |
Hashes for mypy_boto3_guardduty-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39a788b5a61367c69c7766eeb8904571dab9e0a90719f0d3f20258c648f656a3 |
|
MD5 | 1d0a060a3f301b9859e663607bb9e545 |
|
BLAKE2b-256 | 5ce3044dcf57df6145ef02cb0d6a04765aef46cc1b53f2984f3b2ee0f8e5204d |