Botostubs
raw JSON → 0.15.1.23.10 verified Fri May 01 auth: no python
Generates and provides IDE stubs for the entire boto3 API, enabling autocomplete and documentation in any editor. Current version 0.15.1.23.10, versioned to match boto3 releases. Updates are released irregularly per boto3 minor version bumps.
pip install botostubs Common errors
error 'botostubs' has no attribute 'client' ↓
cause Import botostubs does not replace boto3's client/resource; it only adds stubs when imported alongside boto3.
fix
Ensure you import boto3 as well: import boto3; import botostubs
error RuntimeError: botostubs stubs not compatible with installed boto3 version ↓
cause Mismatch between botostubs and boto3 versions.
fix
Upgrade/downgrade botostubs to match your boto3 version: pip install botostubs==<boto3_version>
Warnings
gotcha Stubs are generated for the boto3 version that matches the botostubs version. Using a mismatched boto3 version may cause incomplete or inaccurate stubs. ↓
fix Ensure botostubs version corresponds to your installed boto3 version. Check botostubs version on PyPI vs boto3.
deprecated The library versioning scheme changed; older versions (e.g., 0.14.x) may not generate stubs for newer boto3 services. ↓
fix Upgrade to the latest botostubs that matches your boto3 version.
Imports
- botostubs
import botostubs
Quickstart
import boto3
import botostubs
# Access key and secret key set via environment variables or IAM role
s3 = boto3.client('s3')
# IDE now shows stubs for s3 methods
response = s3.list_buckets()
print(response['Buckets'])