Type annotations for boto3.ElastiCache 1.13.26 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-elasticache
Type annotations for boto3.ElastiCache 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 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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6cf17e601bb54893e517ece771962f948866c1d722f792af63fdac31bb6690 |
|
MD5 | 890238301b11b3275ef828e453043c3b |
|
BLAKE2b-256 | de0188ac56de2aab4b4061144dce2732ba99cb400ee8f7f7a731b688d053c264 |
Hashes for mypy_boto3_elasticache-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c236e5ef34548e383e8d0ee3193acdbe307468261c90f599c331b83ad5e754b |
|
MD5 | b3857ed8caaadc7f6177f8a57516fa4b |
|
BLAKE2b-256 | ab80b61e3106636dc865096368a4f8725ed39b75a0d70d8d74c81e7921e2e4ca |