Skip to content

CodeCommit module#

Index > CodeCommit

Auto-generated documentation for CodeCommit type annotations stubs module types-aiobotocore-codecommit.

How to install#

From PyPI with pip#

Install types-aiobotocore for CodeCommit service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

CodeCommitClient#

Type annotations and code completion for session.create_client("codecommit") as CodeCommitClient boto3 documentation

# CodeCommitClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_codecommit.client import CodeCommitClient


session = get_session()
async with session.create_client("codecommit") as client:
    client: CodeCommitClient

Paginators#

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

# DescribePullRequestEventsPaginator usage example

from types_aiobotocore_codecommit.paginator import DescribePullRequestEventsPaginator

def get_describe_pull_request_events_paginator() -> DescribePullRequestEventsPaginator:
    return client.get_paginator("describe_pull_request_events"))

Literals#

Type annotations for literals used in methods and schema.

# ApprovalStateType usage example

from types_aiobotocore_codecommit.literals import ApprovalStateType

def get_value() -> ApprovalStateType:
    return "APPROVE"

Type definitions#

Type annotations for type definitions used in methods and schema.