Skip to main content

mypy-boto3-payment-cryptography

PyPI - mypy-boto3-payment-cryptography PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for boto3.PaymentCryptographyControlPlane 1.26.150 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 7.14.5.

More information can be found on boto3-stubs page and in mypy-boto3-payment-cryptography docs.

See how it helps to find and fix potential bugs:

boto3-stubs demo

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 PaymentCryptographyControlPlane.

From PyPI with pip

Install boto3-stubs for PaymentCryptographyControlPlane service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[payment-cryptography]'


# 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[payment-cryptography]'


# standalone installation
python -m pip install mypy-boto3-payment-cryptography

How to uninstall

python -m pip uninstall -y mypy-boto3-payment-cryptography

Usage

VSCode

python -m pip install 'boto3-stubs[payment-cryptography]'

Both type checking and code completion should now work. No explicit type annotations required, write your boto3 code as usual.

PyCharm

Install boto3-stubs-lite[payment-cryptography] in your environment:

python -m pip install 'boto3-stubs-lite[payment-cryptography]'`

Both type checking and code completion should now work. Explicit type annotations are required.

Use boto3-stubs package instead for implicit type discovery.

Emacs

  • Install boto3-stubs with services you use in your environment:
python -m pip install 'boto3-stubs[payment-cryptography]'
(use-package lsp-pyright
  :ensure t
  :hook (python-mode . (lambda ()
                          (require 'lsp-pyright)
                          (lsp)))  ; or lsp-deferred
  :init (when (executable-find "python3")
          (setq lsp-pyright-python-executable-cmd "python3"))
  )
  • Make sure emacs uses the environment where you have installed boto3-stubs

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

Sublime Text

  • Install boto3-stubs[payment-cryptography] with services you use in your environment:
python -m pip install 'boto3-stubs[payment-cryptography]'

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

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[payment-cryptography] in your environment:
python -m pip install 'boto3-stubs[payment-cryptography]'`

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: npm i -g pyright
  • Install boto3-stubs[payment-cryptography] in your environment:
python -m pip install 'boto3-stubs[payment-cryptography]'

Optionally, you can install boto3-stubs to typings folder.

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

Explicit type annotations

Client annotations

PaymentCryptographyControlPlaneClient provides annotations for boto3.client("payment-cryptography").

from boto3.session import Session

from mypy_boto3_payment_cryptography import PaymentCryptographyControlPlaneClient

client: PaymentCryptographyControlPlaneClient = Session().client("payment-cryptography")

# now client usage is checked by mypy and IDE should provide code completion

Paginators annotations

mypy_boto3_payment_cryptography.paginator module contains type annotations for all paginators.

from boto3.session import Session

from mypy_boto3_payment_cryptography import PaymentCryptographyControlPlaneClient
from mypy_boto3_payment_cryptography.paginator import (
    ListAliasesPaginator,
    ListKeysPaginator,
    ListTagsForResourcePaginator,
)

client: PaymentCryptographyControlPlaneClient = Session().client("payment-cryptography")

# Explicit type annotations are optional here
# Types should be correctly discovered by mypy and IDEs
list_aliases_paginator: ListAliasesPaginator = client.get_paginator("list_aliases")
list_keys_paginator: ListKeysPaginator = client.get_paginator("list_keys")
list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator(
    "list_tags_for_resource"
)

Literals

mypy_boto3_payment_cryptography.literals module contains literals extracted from shapes that can be used in user code for type checking.

from mypy_boto3_payment_cryptography.literals import (
    KeyAlgorithmType,
    KeyCheckValueAlgorithmType,
    KeyClassType,
    KeyMaterialTypeType,
    KeyOriginType,
    KeyStateType,
    KeyUsageType,
    ListAliasesPaginatorName,
    ListKeysPaginatorName,
    ListTagsForResourcePaginatorName,
    Tr34KeyBlockFormatType,
    WrappedKeyMaterialFormatType,
    PaymentCryptographyControlPlaneServiceName,
    ServiceName,
    ResourceServiceName,
    PaginatorName,
)


def check_value(value: KeyAlgorithmType) -> bool:
    ...

Typed dictionaries

mypy_boto3_payment_cryptography.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from mypy_boto3_payment_cryptography.type_defs import (
    AliasTypeDef,
    CreateAliasInputRequestTypeDef,
    ResponseMetadataTypeDef,
    TagTypeDef,
    DeleteAliasInputRequestTypeDef,
    DeleteKeyInputRequestTypeDef,
    ExportTr31KeyBlockTypeDef,
    ExportTr34KeyBlockTypeDef,
    WrappedKeyTypeDef,
    GetAliasInputRequestTypeDef,
    GetKeyInputRequestTypeDef,
    GetParametersForExportInputRequestTypeDef,
    GetParametersForImportInputRequestTypeDef,
    GetPublicKeyCertificateInputRequestTypeDef,
    ImportTr31KeyBlockTypeDef,
    ImportTr34KeyBlockTypeDef,
    KeyModesOfUseTypeDef,
    PaginatorConfigTypeDef,
    ListAliasesInputRequestTypeDef,
    ListKeysInputRequestTypeDef,
    ListTagsForResourceInputRequestTypeDef,
    RestoreKeyInputRequestTypeDef,
    StartKeyUsageInputRequestTypeDef,
    StopKeyUsageInputRequestTypeDef,
    UntagResourceInputRequestTypeDef,
    UpdateAliasInputRequestTypeDef,
    CreateAliasOutputTypeDef,
    GetAliasOutputTypeDef,
    GetParametersForExportOutputTypeDef,
    GetParametersForImportOutputTypeDef,
    GetPublicKeyCertificateOutputTypeDef,
    ListAliasesOutputTypeDef,
    UpdateAliasOutputTypeDef,
    ListTagsForResourceOutputTypeDef,
    TagResourceInputRequestTypeDef,
    ExportKeyMaterialTypeDef,
    ExportKeyOutputTypeDef,
    KeyAttributesTypeDef,
    ListAliasesInputListAliasesPaginateTypeDef,
    ListKeysInputListKeysPaginateTypeDef,
    ListTagsForResourceInputListTagsForResourcePaginateTypeDef,
    ExportKeyInputRequestTypeDef,
    CreateKeyInputRequestTypeDef,
    KeySummaryTypeDef,
    KeyTypeDef,
    RootCertificatePublicKeyTypeDef,
    TrustedCertificatePublicKeyTypeDef,
    ListKeysOutputTypeDef,
    CreateKeyOutputTypeDef,
    DeleteKeyOutputTypeDef,
    GetKeyOutputTypeDef,
    ImportKeyOutputTypeDef,
    RestoreKeyOutputTypeDef,
    StartKeyUsageOutputTypeDef,
    StopKeyUsageOutputTypeDef,
    ImportKeyMaterialTypeDef,
    ImportKeyInputRequestTypeDef,
)


def get_structure() -> AliasTypeDef:
    return {...}

How it works

Fully automated mypy-boto3-builder carefully generates type annotations for each service, patiently waiting for boto3 updates. It delivers drop-in type annotations for you and makes sure that:

  • All available boto3 services are covered.
  • Each public class and method of every boto3 service gets valid type annotations extracted from botocore schemas.
  • Type annotations include up-to-date documentation.
  • Link to documentation is provided for every method.
  • Code is processed by black and isort for readability.

What's new

Implemented features

  • Fully type annotated boto3, botocore, aiobotocore and aioboto3 libraries
  • mypy, pyright, VSCode, PyCharm, Sublime Text and Emacs compatibility
  • Client, ServiceResource, Resource, Waiter Paginator type annotations for each service
  • Generated TypeDefs for each service
  • Generated Literals for each service
  • Auto discovery of types for boto3.client and boto3.resource calls
  • Auto discovery of types for session.client and session.resource calls
  • Auto discovery of types for client.get_waiter and client.get_paginator calls
  • Auto discovery of types for ServiceResource and Resource collections
  • Auto discovery of types for aiobotocore.Session.create_client calls

Latest changes

Builder changelog can be found in Releases.

Versioning

mypy-boto3-payment-cryptography version is the same as related boto3 version and follows PEP 440 format.

Thank you

Documentation

All services type annotations can be found in boto3 docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypy-boto3-payment-cryptography-1.26.150.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mypy-boto3-payment-cryptography-1.26.150.tar.gz.

File metadata

File hashes

Hashes for mypy-boto3-payment-cryptography-1.26.150.tar.gz
Algorithm Hash digest
SHA256 e1c668f333aa2bbb850e8cb1a147fc78a4f588b3431c1cc1dfb3fc0635a1ab91
MD5 4bccca1099f46799a4fcbc264a6c85dd
BLAKE2b-256 a07eff85f576a740d722a9f8ef806e05cf28e3c6b734b33ebe81d54746c1b911

See more details on using hashes here.

File details

Details for the file mypy_boto3_payment_cryptography-1.26.150-py3-none-any.whl.

File metadata

File hashes

Hashes for mypy_boto3_payment_cryptography-1.26.150-py3-none-any.whl
Algorithm Hash digest
SHA256 153e6312b5006a69363541cb2c2ed19507662f114ec3568733d08a0b731d1ae6
MD5 f03379ce3271fb24c3a0d1fb0b574dca
BLAKE2b-256 c869d13a68ac5cec86c9105064f8b85ddda2393262f861ea4d3b09e14d4bf5f6

See more details on using hashes here.

Release history Release notifications | RSS feed

1.43.24

2 files

1.43.1

2 files

1.43.0

2 files

1.42.83

2 files

1.42.12

2 files

1.42.3

2 files

1.41.0

2 files

1.40.64

2 files

1.40.59

2 files

1.40.30

2 files

1.40.28

2 files

1.40.0

2 files

1.39.0

2 files

1.38.40

2 files

1.38.0

2 files

1.37.23

2 files

1.37.0

2 files

1.36.0

2 files

1.35.93

2 files

1.35.59

2 files

1.35.0

2 files

1.34.137

2 files

1.34.89

2 files

1.34.20

2 files

1.34.0

2 files

1.33.9

2 files

1.33.0

2 files

1.29.0

2 files

1.28.36

2 files

1.28.16

2 files

1.28.15.post1

2 files

1.28.15

2 files

1.28.12

2 files

1.28.0

2 files

1.27.0

2 files

This release

1.26.150 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page