Skip to content

CodeArtifact module

Index > CodeArtifact

Auto-generated documentation for CodeArtifact type annotations stubs module types-aiobotocore-codeartifact.

How to install

From PyPI with pip

Install types-aiobotocore for CodeArtifact service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[codeartifact]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[codeartifact]'

# standalone installation
python -m pip install types-aiobotocore-codeartifact

How to uninstall

python -m pip uninstall -y types-aiobotocore-codeartifact


Code samples can be found in Examples.


Type annotations and code completion for session.create_client("codeartifact") as CodeArtifactClient boto3 documentation

Usage example
from aiobotocore.session import get_session

from types_aiobotocore_codeartifact.client import CodeArtifactClient

session = get_session()
async with session.create_client("codeartifact") as client:
    client: CodeArtifactClient


Type annotations and code completion for paginators from session.create_client("codeartifact").get_paginator("...").

Usage example
from types_aiobotocore_codeartifact.paginator import ListDomainsPaginator

def get_list_domains_paginator() -> ListDomainsPaginator:
    return client.get_paginator("list_domains"))


Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_codeartifact.literals import AllowPublishType

def get_value() -> AllowPublishType:
    return "ALLOW"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_codeartifact.type_defs import AssetSummaryTypeDef

def get_value() -> AssetSummaryTypeDef:
    return {
        "name": ...,