Type annotations for boto3#
Auto-generated documentation for boto3 type annotations package boto3-stubs.
Generated with mypy-boto3-builder 8.8.0.
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.99' mypy_boto3_builder
- Select
boto3-stubs
AWS SDK. - Select services you use in the current project.
- Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Auto-discover services
and select services you use in the current project.
From PyPI with pip#
Install boto3-stubs
to add type checking for boto3
package.
# install type annotations only for boto3
python -m pip install boto3-stubs
# install boto3 type annotations
# for cloudformation, dynamodb, ec2, lambda, rds, s3, sqs
python -m pip install 'boto3-stubs[essential]'
# or install annotations for services you use
python -m pip install 'boto3-stubs[acm,apigateway]'
# or install annotations in sync with boto3 version
python -m pip install 'boto3-stubs[boto3]'
# or install all-in-one annotations for all services
python -m pip install 'boto3-stubs[full]'
# 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[essential]'
From conda-forge#
Add conda-forge
to your channels with:
conda config --add channels conda-forge
conda config --set channel_priority strict
Once the conda-forge
channel has been enabled, boto3-stubs
and boto3-stubs-essential
can be installed with:
conda install boto3-stubs boto3-stubs-essential
List all available versions of boto3-stubs
available on your platform with:
conda search boto3-stubs --channel conda-forge
How to uninstall#
# uninstall boto3-stubs
python -m pip uninstall -y boto3-stubs
Packages#
- boto3-stubs - boto3 type annotations with
session.client/resource
overloads - boto3-stubs-lite - boto3 type annotations without
session.client/resource
overloads -
boto3-stubs-full - type annotations for all services below in one package
-
mypy-boto3-accessanalyzer - type annotations for AccessAnalyzer service
-
mypy-boto3-account - type annotations for Account service
-
mypy-boto3-acm - type annotations for ACM service
-
mypy-boto3-acm-pca - type annotations for ACMPCA service
-
mypy-boto3-amp - type annotations for PrometheusService service
-
mypy-boto3-amplify - type annotations for Amplify service
-
mypy-boto3-amplifybackend - type annotations for AmplifyBackend service
-
mypy-boto3-amplifyuibuilder - type annotations for AmplifyUIBuilder service
-
mypy-boto3-apigateway - type annotations for APIGateway service
-
mypy-boto3-apigatewaymanagementapi - type annotations for ApiGatewayManagementApi service
-
mypy-boto3-apigatewayv2 - type annotations for ApiGatewayV2 service
-
mypy-boto3-appconfig - type annotations for AppConfig service
-
mypy-boto3-appconfigdata - type annotations for AppConfigData service
-
mypy-boto3-appfabric - type annotations for AppFabric service
-
mypy-boto3-appflow - type annotations for Appflow service
-
mypy-boto3-appintegrations - type annotations for AppIntegrationsService service
-
mypy-boto3-application-autoscaling - type annotations for ApplicationAutoScaling service
-
mypy-boto3-application-insights - type annotations for ApplicationInsights service
-
mypy-boto3-application-signals - type annotations for CloudWatchApplicationSignals service
-
mypy-boto3-applicationcostprofiler - type annotations for ApplicationCostProfiler service
-
mypy-boto3-appmesh - type annotations for AppMesh service
-
mypy-boto3-apprunner - type annotations for AppRunner service
-
mypy-boto3-appstream - type annotations for AppStream service
-
mypy-boto3-appsync - type annotations for AppSync service
-
mypy-boto3-apptest - type annotations for MainframeModernizationApplicationTesting service
-
mypy-boto3-arc-zonal-shift - type annotations for ARCZonalShift service
-
mypy-boto3-artifact - type annotations for Artifact service
-
mypy-boto3-athena - type annotations for Athena service
-
mypy-boto3-auditmanager - type annotations for AuditManager service
-
mypy-boto3-autoscaling - type annotations for AutoScaling service
-
mypy-boto3-autoscaling-plans - type annotations for AutoScalingPlans service
-
mypy-boto3-b2bi - type annotations for B2BI service
-
mypy-boto3-backup - type annotations for Backup service
-
mypy-boto3-backup-gateway - type annotations for BackupGateway service
-
mypy-boto3-backupsearch - type annotations for BackupSearch service
-
mypy-boto3-batch - type annotations for Batch service
-
mypy-boto3-bcm-data-exports - type annotations for BillingandCostManagementDataExports service
-
mypy-boto3-bcm-pricing-calculator - type annotations for BillingandCostManagementPricingCalculator service
-
mypy-boto3-bedrock - type annotations for Bedrock service
-
mypy-boto3-bedrock-agent - type annotations for AgentsforBedrock service
-
mypy-boto3-bedrock-agent-runtime - type annotations for AgentsforBedrockRuntime service
-
mypy-boto3-bedrock-data-automation - type annotations for DataAutomationforBedrock service
-
mypy-boto3-bedrock-data-automation-runtime - type annotations for RuntimeforBedrockDataAutomation service
-
mypy-boto3-bedrock-runtime - type annotations for BedrockRuntime service
-
mypy-boto3-billing - type annotations for Billing service
-
mypy-boto3-billingconductor - type annotations for BillingConductor service
-
mypy-boto3-braket - type annotations for Braket service
-
mypy-boto3-budgets - type annotations for Budgets service