Braket module#
Index > Braket
Auto-generated documentation for Braket type annotations stubs module mypy-boto3-braket.
How to install#
Generate locally (recommended)#
You can generate type annotations for boto3
package locally with mypy_boto3_builder
.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'boto3==1.35.86' mypy_boto3_builder
- Select
boto3-stubs
AWS SDK. - Add
Braket
service. - Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and Braket
.
From PyPI with pip#
Install boto3-stubs
for Braket
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[braket]'
# 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[braket]'
# standalone installation
python -m pip install mypy-boto3-braket
How to uninstall#
python -m pip uninstall -y mypy-boto3-braket
Usage#
Code samples can be found in Examples.
BraketClient#
Type annotations and code completion for boto3.client("braket")
as BraketClient
boto3 documentation
# BraketClient usage example
from boto3.session import Session
from mypy_boto3_braket.client import BraketClient
def get_client() -> BraketClient:
return Session().client("braket")
Paginators#
Type annotations and code completion for paginators
from boto3.client("braket").get_paginator("...")
.
# SearchDevicesPaginator usage example
from boto3.session import Session
from mypy_boto3_braket.paginator import SearchDevicesPaginator
def get_search_devices_paginator() -> SearchDevicesPaginator:
return Session().client("braket").get_paginator("search_devices"))
Literals#
Type annotations for literals used in methods and schema.
# AssociationTypeType usage example
from mypy_boto3_braket.literals import AssociationTypeType
def get_value() -> AssociationTypeType:
return "RESERVATION_TIME_WINDOW_ARN"
- AssociationTypeType
- CancellationStatusType
- CompressionTypeType
- DeviceStatusType
- DeviceTypeType
- HybridJobAdditionalAttributeNameType
- InstanceTypeType
- JobEventTypeType
- JobPrimaryStatusType
- QuantumTaskAdditionalAttributeNameType
- QuantumTaskStatusType
- QueueNameType
- QueuePriorityType
- SearchDevicesPaginatorName
- SearchJobsFilterOperatorType
- SearchJobsPaginatorName
- SearchQuantumTasksFilterOperatorType
- SearchQuantumTasksPaginatorName
- BraketServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- ContainerImageTypeDef
- ScriptModeConfigTypeDef
- AssociationTypeDef
- CancelJobRequestRequestTypeDef
- ResponseMetadataTypeDef
- CancelQuantumTaskRequestRequestTypeDef
- DeviceConfigTypeDef
- InstanceConfigTypeDef
- JobCheckpointConfigTypeDef
- JobOutputDataConfigTypeDef
- JobStoppingConditionTypeDef
- S3DataSourceTypeDef
- DeviceQueueInfoTypeDef
- DeviceSummaryTypeDef
- GetDeviceRequestRequestTypeDef
- GetJobRequestRequestTypeDef
- HybridJobQueueInfoTypeDef
- JobEventDetailsTypeDef
- GetQuantumTaskRequestRequestTypeDef
- QuantumTaskQueueInfoTypeDef
- JobSummaryTypeDef
- ListTagsForResourceRequestRequestTypeDef
- PaginatorConfigTypeDef
- QuantumTaskSummaryTypeDef
- SearchDevicesFilterTypeDef
- SearchJobsFilterTypeDef
- SearchQuantumTasksFilterTypeDef
- TagResourceRequestRequestTypeDef
- UntagResourceRequestRequestTypeDef
- AlgorithmSpecificationTypeDef
- CreateQuantumTaskRequestRequestTypeDef
- CancelJobResponseTypeDef
- CancelQuantumTaskResponseTypeDef
- CreateJobResponseTypeDef
- CreateQuantumTaskResponseTypeDef
- ListTagsForResourceResponseTypeDef
- DataSourceTypeDef
- GetDeviceResponseTypeDef
- SearchDevicesResponseTypeDef
- GetQuantumTaskResponseTypeDef
- SearchJobsResponseTypeDef
- SearchQuantumTasksResponseTypeDef
- SearchDevicesRequestPaginateTypeDef
- SearchDevicesRequestRequestTypeDef
- SearchJobsRequestPaginateTypeDef
- SearchJobsRequestRequestTypeDef
- SearchQuantumTasksRequestPaginateTypeDef
- SearchQuantumTasksRequestRequestTypeDef
- InputFileConfigTypeDef
- CreateJobRequestRequestTypeDef
- GetJobResponseTypeDef