Type annotations for boto3.SecretsManager 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-secretsmanager
Type annotations for boto3.SecretsManager 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
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 SecretsManager
service.
python -m pip install boto3-stubs[secretsmanager]
Use boto3
with mypy_boto3_secretsmanager
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_secretsmanager import SecretsManagerClient
# Now mypy can check if your code is valid.
client: SecretsManagerClient = boto3.client("secretsmanager")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SecretsManagerClient = session.client("secretsmanager")
# Annotated paginators are included as well
import mypy_boto3_secretsmanager.paginator as secretsmanager_paginators
list_secrets_paginator: secretsmanager_paginators.ListSecretsPaginator = client.get_paginator("list_secrets")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_secretsmanager
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
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 carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("secretsmanager")
session_client = boto3.Session().client("secretsmanager")
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-secretsmanager-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891c86c5134ffee9997885c2eb0ca0ba9a738b169cbe06402d90a8669edd562b |
|
MD5 | 2d9f5e55d7fa8b52b5aa08e17ba474bf |
|
BLAKE2b-256 | f702af1c77386356dd003c1135e3ce362fe6c06e9e6601da82d8749bd0bcdeb3 |
Hashes for mypy_boto3_secretsmanager-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e925dc42ce189be244dcbacd809ece49d986261ad790941263423899b9ea10 |
|
MD5 | bdd4de8c126641c083f0251128ba546c |
|
BLAKE2b-256 | a25ba3584c20816835441100e1173e8b60d8e97a96134f2e20c28cf37d436368 |