Type annotations for boto3.ElastiCache 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-elasticache
Type annotations for boto3.ElastiCache 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 ElastiCache
service.
python -m pip install boto3-stubs[elasticache]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_elasticache
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_elasticache import ElastiCacheClient
# Now mypy can check if your code is valid.
client: ElastiCacheClient = boto3.client("elasticache")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ElastiCacheClient = session.client("elasticache")
# Waiters are also supported
import mypy_boto3_elasticache.waiter as elasticache_waiters
cache_cluster_available_waiter: elasticache_waiters.CacheClusterAvailableWaiter = client.get_waiter("cache_cluster_available")
cache_cluster_deleted_waiter: elasticache_waiters.CacheClusterDeletedWaiter = client.get_waiter("cache_cluster_deleted")
replication_group_available_waiter: elasticache_waiters.ReplicationGroupAvailableWaiter = client.get_waiter("replication_group_available")
replication_group_deleted_waiter: elasticache_waiters.ReplicationGroupDeletedWaiter = client.get_waiter("replication_group_deleted")
# Annotated paginators are included as well
import mypy_boto3_elasticache.paginator as elasticache_paginators
describe_cache_clusters_paginator: elasticache_paginators.DescribeCacheClustersPaginator = client.get_paginator("describe_cache_clusters")
describe_cache_engine_versions_paginator: elasticache_paginators.DescribeCacheEngineVersionsPaginator = client.get_paginator("describe_cache_engine_versions")
describe_cache_parameter_groups_paginator: elasticache_paginators.DescribeCacheParameterGroupsPaginator = client.get_paginator("describe_cache_parameter_groups")
describe_cache_parameters_paginator: elasticache_paginators.DescribeCacheParametersPaginator = client.get_paginator("describe_cache_parameters")
describe_cache_security_groups_paginator: elasticache_paginators.DescribeCacheSecurityGroupsPaginator = client.get_paginator("describe_cache_security_groups")
describe_cache_subnet_groups_paginator: elasticache_paginators.DescribeCacheSubnetGroupsPaginator = client.get_paginator("describe_cache_subnet_groups")
describe_engine_default_parameters_paginator: elasticache_paginators.DescribeEngineDefaultParametersPaginator = client.get_paginator("describe_engine_default_parameters")
describe_events_paginator: elasticache_paginators.DescribeEventsPaginator = client.get_paginator("describe_events")
describe_global_replication_groups_paginator: elasticache_paginators.DescribeGlobalReplicationGroupsPaginator = client.get_paginator("describe_global_replication_groups")
describe_replication_groups_paginator: elasticache_paginators.DescribeReplicationGroupsPaginator = client.get_paginator("describe_replication_groups")
describe_reserved_cache_nodes_paginator: elasticache_paginators.DescribeReservedCacheNodesPaginator = client.get_paginator("describe_reserved_cache_nodes")
describe_reserved_cache_nodes_offerings_paginator: elasticache_paginators.DescribeReservedCacheNodesOfferingsPaginator = client.get_paginator("describe_reserved_cache_nodes_offerings")
describe_service_updates_paginator: elasticache_paginators.DescribeServiceUpdatesPaginator = client.get_paginator("describe_service_updates")
describe_snapshots_paginator: elasticache_paginators.DescribeSnapshotsPaginator = client.get_paginator("describe_snapshots")
describe_update_actions_paginator: elasticache_paginators.DescribeUpdateActionsPaginator = client.get_paginator("describe_update_actions")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_elasticache
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_elasticache as elasticache
from mypy_boto3_elasticache import ElastiCacheClient
# with these
from mypy_boto3 import elasticache
from mypy_boto3.elasticache import ElastiCacheClient
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-elasticache-1.13.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fadf98ca1259defa0852c209921af963346752516ce57ce539b2bec6dc95d69 |
|
MD5 | c635f23a5bc6fa77bb6b52a968be6d1a |
|
BLAKE2b-256 | 651b6fcef07461bdbd2eec61c562c0a41dafd0fe2916a414bf3afd3ff3dc976a |
Hashes for mypy_boto3_elasticache-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30841b6361851c31b417d153be4552e9a36b1a7855b951d1188c6eaffdaed331 |
|
MD5 | 3207a540364d296605b838c2c45cd454 |
|
BLAKE2b-256 | 2ded76005c10b4446f695b62e6123fb96772f32f29a750da80cce701c4e60984 |