Type annotations for boto3.MemoryDB 1.20.49 service generated by mypy-boto3-builder 6.4.2
Project description
mypy-boto3-memorydb
Type annotations for boto3.MemoryDB 1.20.49 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 6.4.2.
More information can be found on boto3-stubs page and in mypy-boto3-memorydb docs
See how it helps to find and fix potential bugs:
How to install
VSCode extension
Add
AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and MemoryDB
.
From PyPI with pip
Install boto3-stubs
for MemoryDB
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[memorydb]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[memorydb]'
# standalone installation
python -m pip install mypy-boto3-memorydb
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
boto3-stubs[memorydb]
in your environment:python -m pip install 'boto3-stubs[memorydb]'
Both type checking and auto-complete should work for MemoryDB
service. No
explicit type annotations required, write your boto3
code as usual.
PyCharm
- Install
boto3-stubs[memorydb]
in your environment:python -m pip install 'boto3-stubs[memorydb]'
Both type checking and auto-complete should work for MemoryDB
service. No
explicit type annotations required, write your boto3
code as usual.
Auto-complete can be slow on big projects or if you have a lot of installed
boto3-stubs
submodules.
Other IDEs
Not tested, but as long as your IDE supports mypy
or pyright
, everything
should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
boto3-stubs[memorydb]
in your environment:python -m pip install 'boto3-stubs[memorydb]'
- Run
mypy
as usual
Type checking should work for MemoryDB
service. No explicit type annotations
required, write your boto3
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
boto3-stubs[memorydb]
in your environment:python -m pip install 'boto3-stubs[memorydb]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for MemoryDB
service. No explicit type annotations
required, write your boto3
code as usual.
Explicit type annotations
Client annotations
MemoryDBClient
provides annotations for boto3.client("memorydb")
.
from boto3.session import Session
from mypy_boto3_memorydb import MemoryDBClient
client: MemoryDBClient = Session().client("memorydb")
# now client usage is checked by mypy and IDE should provide code auto-complete
Literals
mypy_boto3_memorydb.literals
module contains literals extracted from shapes
that can be used in user code for type checking.
from mypy_boto3_memorydb.literals import (
AZStatusType,
AuthenticationTypeType,
InputAuthenticationTypeType,
ServiceUpdateStatusType,
ServiceUpdateTypeType,
SourceTypeType,
ServiceName,
)
def check_value(value: AZStatusType) -> bool:
...
Typed dictionaries
mypy_boto3_memorydb.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_memorydb.type_defs import (
ACLPendingChangesTypeDef,
ACLTypeDef,
ACLsUpdateStatusTypeDef,
AuthenticationModeTypeDef,
AuthenticationTypeDef,
AvailabilityZoneTypeDef,
BatchUpdateClusterRequestRequestTypeDef,
BatchUpdateClusterResponseTypeDef,
ClusterConfigurationTypeDef,
ClusterPendingUpdatesTypeDef,
ClusterTypeDef,
CopySnapshotRequestRequestTypeDef,
CopySnapshotResponseTypeDef,
CreateACLRequestRequestTypeDef,
CreateACLResponseTypeDef,
CreateClusterRequestRequestTypeDef,
CreateClusterResponseTypeDef,
CreateParameterGroupRequestRequestTypeDef,
CreateParameterGroupResponseTypeDef,
CreateSnapshotRequestRequestTypeDef,
CreateSnapshotResponseTypeDef,
CreateSubnetGroupRequestRequestTypeDef,
CreateSubnetGroupResponseTypeDef,
CreateUserRequestRequestTypeDef,
CreateUserResponseTypeDef,
DeleteACLRequestRequestTypeDef,
DeleteACLResponseTypeDef,
DeleteClusterRequestRequestTypeDef,
DeleteClusterResponseTypeDef,
DeleteParameterGroupRequestRequestTypeDef,
DeleteParameterGroupResponseTypeDef,
DeleteSnapshotRequestRequestTypeDef,
DeleteSnapshotResponseTypeDef,
DeleteSubnetGroupRequestRequestTypeDef,
DeleteSubnetGroupResponseTypeDef,
DeleteUserRequestRequestTypeDef,
DeleteUserResponseTypeDef,
DescribeACLsRequestRequestTypeDef,
DescribeACLsResponseTypeDef,
DescribeClustersRequestRequestTypeDef,
DescribeClustersResponseTypeDef,
DescribeEngineVersionsRequestRequestTypeDef,
DescribeEngineVersionsResponseTypeDef,
DescribeEventsRequestRequestTypeDef,
DescribeEventsResponseTypeDef,
DescribeParameterGroupsRequestRequestTypeDef,
DescribeParameterGroupsResponseTypeDef,
DescribeParametersRequestRequestTypeDef,
DescribeParametersResponseTypeDef,
DescribeServiceUpdatesRequestRequestTypeDef,
DescribeServiceUpdatesResponseTypeDef,
DescribeSnapshotsRequestRequestTypeDef,
DescribeSnapshotsResponseTypeDef,
DescribeSubnetGroupsRequestRequestTypeDef,
DescribeSubnetGroupsResponseTypeDef,
DescribeUsersRequestRequestTypeDef,
DescribeUsersResponseTypeDef,
EndpointTypeDef,
EngineVersionInfoTypeDef,
EventTypeDef,
FailoverShardRequestRequestTypeDef,
FailoverShardResponseTypeDef,
FilterTypeDef,
ListAllowedNodeTypeUpdatesRequestRequestTypeDef,
ListAllowedNodeTypeUpdatesResponseTypeDef,
ListTagsRequestRequestTypeDef,
ListTagsResponseTypeDef,
NodeTypeDef,
ParameterGroupTypeDef,
ParameterNameValueTypeDef,
ParameterTypeDef,
PendingModifiedServiceUpdateTypeDef,
ReplicaConfigurationRequestTypeDef,
ResetParameterGroupRequestRequestTypeDef,
ResetParameterGroupResponseTypeDef,
ReshardingStatusTypeDef,
ResponseMetadataTypeDef,
SecurityGroupMembershipTypeDef,
ServiceUpdateRequestTypeDef,
ServiceUpdateTypeDef,
ShardConfigurationRequestTypeDef,
ShardConfigurationTypeDef,
ShardDetailTypeDef,
ShardTypeDef,
SlotMigrationTypeDef,
SnapshotTypeDef,
SubnetGroupTypeDef,
SubnetTypeDef,
TagResourceRequestRequestTypeDef,
TagResourceResponseTypeDef,
TagTypeDef,
UnprocessedClusterTypeDef,
UntagResourceRequestRequestTypeDef,
UntagResourceResponseTypeDef,
UpdateACLRequestRequestTypeDef,
UpdateACLResponseTypeDef,
UpdateClusterRequestRequestTypeDef,
UpdateClusterResponseTypeDef,
UpdateParameterGroupRequestRequestTypeDef,
UpdateParameterGroupResponseTypeDef,
UpdateSubnetGroupRequestRequestTypeDef,
UpdateSubnetGroupResponseTypeDef,
UpdateUserRequestRequestTypeDef,
UpdateUserResponseTypeDef,
UserTypeDef,
)
def get_structure() -> ACLPendingChangesTypeDef:
return {
...
}
Versioning
mypy-boto3-memorydb
version is the same as related boto3
version and
follows PEP 440 format.
Documentation
All type annotations can be found in mypy-boto3-memorydb docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
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-memorydb-1.20.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b55d530fb5bea0da5a4a0dfaae4da07b43b2af0f085e4704ad4b2efefab0bf |
|
MD5 | fea72d20e358fabed16fdd4ddff802e4 |
|
BLAKE2b-256 | 576c8b976dca15c2355f71b64bf85d47ca53ea0e64bd43a11169b182c0200443 |
Hashes for mypy_boto3_memorydb-1.20.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd8752fa5399da3a6dba83c80140f5ce6d764013b8b17a96b78634652d7a3a3c |
|
MD5 | 827a676ddb57efe85c588de342f81fd1 |
|
BLAKE2b-256 | 752682aa28b19e88023051033c37bc06bd7a4f95f8539f08849860655bc48593 |