Type annotations for boto3.Macie 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-macie
Type annotations for boto3.Macie 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 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.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7945d8363aa786a42d892bcba9dfb714f48167cea22d8005b7dde94f1fedaaa |
|
MD5 | f2a3b71b1fe7e2e1459012ffdf525ec4 |
|
BLAKE2b-256 | fcd3550a49f9fa3209e2dc4f52da32a10f4b5df4bde2757b21bb3df100a89369 |
Hashes for mypy_boto3_macie-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f6a04005d07bd417c856b52aeac7fc32e773aa5548f809755fc98cf7461d9e |
|
MD5 | 0327ab00d79e353881a3f7ddd22afcc3 |
|
BLAKE2b-256 | b27d2a3ec850034896cb39774c3e6bb19a781afa772ff7e94fce4b448d5a40a8 |