Skip to content

ECRPublic module

Index > ECRPublic

Auto-generated documentation for ECRPublic type annotations stubs module mypy-boto3-ecr-public.

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

From PyPI with pip

Install boto3-stubs for ECRPublic service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[ecr-public]'


# 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[ecr-public]'


# standalone installation
python -m pip install mypy-boto3-ecr-public

How to uninstall

python -m pip uninstall -y mypy-boto3-ecr-public

Usage

Code samples can be found in Examples.

ECRPublicClient

Type annotations and code completion for boto3.client("ecr-public") as ECRPublicClient boto3 documentation

Usage example
from boto3.session import Session

from mypy_boto3_ecr_public.client import ECRPublicClient

def get_client() -> ECRPublicClient:
    return Session().client("ecr-public")

Paginators

Type annotations and code completion for paginators from boto3.client("ecr-public").get_paginator("...").

Usage example
from boto3.session import Session

from mypy_boto3_ecr_public.paginator import DescribeImageTagsPaginator

def get_describe_image_tags_paginator() -> DescribeImageTagsPaginator:
    return Session().client("ecr-public").get_paginator("describe_image_tags"))

Literals

Type annotations for literals used in methods and schemas.

Usage example
from mypy_boto3_ecr_public.literals import DescribeImageTagsPaginatorName

def get_value() -> DescribeImageTagsPaginatorName:
    return "describe_image_tags"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from mypy_boto3_ecr_public.type_defs import AuthorizationDataTypeDef

def get_value() -> AuthorizationDataTypeDef:
    return {
        "authorizationToken": ...,
    }