Type annotations for boto3.Macie 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-macie
Type annotations for boto3.Macie 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 Macie
service.
python -m pip install boto3-stubs[macie]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_macie
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_macie import MacieClient
# Now mypy can check if your code is valid.
client: MacieClient = boto3.client("macie")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MacieClient = session.client("macie")
# Annotated paginators are included as well
import mypy_boto3_macie.paginator as macie_paginators
list_member_accounts_paginator: macie_paginators.ListMemberAccountsPaginator = client.get_paginator("list_member_accounts")
list_s3_resources_paginator: macie_paginators.ListS3ResourcesPaginator = client.get_paginator("list_s3_resources")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_macie
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_macie as macie
from mypy_boto3_macie import MacieClient
# with these
from mypy_boto3 import macie
from mypy_boto3.macie import MacieClient
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-macie-1.13.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81659131290a98d269cd5212a199880d1e1dc79f853b3a9517005e58ef771279 |
|
MD5 | c2d03f35f9372aaaf67c740943f7f438 |
|
BLAKE2b-256 | 9148113efc80bcff421ef1b7f776e2f3a5083c1a90c03b0c9921c11663c0aeb5 |
Hashes for mypy_boto3_macie-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90e0c0837b153a71e539ebeb1daf41bcb7b7598a3d8dff85e32fce3fa6fc233 |
|
MD5 | 48c3f4d041edb98cfa48607703fad92a |
|
BLAKE2b-256 | 5e2b31f2662d8f60a6f01a9bf5a3547cca4b767b450f9b5079c3b579134d5c95 |