Type annotations for boto3.Macie 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0d106ace33e694edd028754990b531103744261e3b8fa91aac618e322f4aa56 |
|
MD5 | 20a082278747c9d84bd8cb1acd5d980b |
|
BLAKE2b-256 | d82a198c27a2429e18d55f2535d7cb961b86aed9302eee00c324054b3c50f58e |
Hashes for mypy_boto3_macie-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802c53538551f4c66df07c51e4ad948c4f44690dc2c1965e32c8dccca52d5cef |
|
MD5 | cd84a0df670d1db5a6ba15eeda9d1d97 |
|
BLAKE2b-256 | 49ee894d71002c92c154c372b10867d239e20f9bd33905081e08fd3ee29b9ce7 |