Type annotations for boto3.ElastiCache 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.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 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60166cc70a362b79968ceadbf6ff3ca23f297caa650b5e0a265c840682693342 |
|
MD5 | e2db1f65b1eab8a3c1629522b9e751e5 |
|
BLAKE2b-256 | eae322302bfe360166f92c6e165e02d0ff57ebd3f9f748fd8ca7c7229b14f627 |
Hashes for mypy_boto3_elasticache-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff2d180014015c32092a6c029bf9cf423e086a55de99b8d8caf83fb0ca021e3d |
|
MD5 | 6f0b581b47909b43a9ffb54a67968367 |
|
BLAKE2b-256 | 38e72090b41b3fe06b6522910f79dcc6b72313b4375a0b2e7b8a7fec4a37be73 |