Mypy-friendly boto3 1.10.36 type annotations master module.
Project description
mypy_boto3
Mypy-friendly type annotations for boto3 1.10.36
.
More information can be found here.
How to use
This package by itself is not very useful, it just gives you access to all
underlying boto3
services type annotations.
It is the biggest package, so if you want to save 4 MB of space, install
service packages directly, e.g. pip install mypy-boto3-s3 mypy-boto3-ec2
Type checking
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for services that you use to get type checking working.
# You can find a full list of modules below
python -m pip install boto3-stubs[s3,ec2]
# build service index. You should execute this command everytime
# you update boto3-stubs or install/remove services
python -m mypy_boto3
Use boto3
with mypy_boto3
in your project and enjoy type checking.
import boto3
from mypy_boto3 import s3
# alternative import if you do not want to install mypy_boto3 package
# import mypy_boto3_s3 as s3
# Check if your IDE supports function overloads,
# you probably do not need explicit type annotations
# client = boto3.client("s3")
client: s3.Client = boto3.client("s3")
# Oh, it must be `Bucket`... Thanks, mypy!
client.create_bucket(bucket="bucket")
Code auto-complete
Not a single Python IDE supports Literal
type overloads yet (but in VSCode
support is just around the corner).
Meanwhile, to have a nice auto-complete you can explicitly set types to help your IDE to get methods, arguments etc.
import boto3_name
from mypy_boto3 import ec2
# this is the only place where you have to set types explicitly
client: ec2.Client = boto3.client("ec2")
resource: ec2.ServiceResource = boto3.resource("ec2")
# now you have auto-complete for methods, arguments and even return types
How it works
Fully automated builder carefully generates
type annotations for each service, patiently waiting for boto3
updates. It delivers
a drop-in type annotations for you and makes sure that:
- Latest version of
boto3
is used. - Each public class and method of every
boto3
service gets valid type annotations extracted from latest documentation (blamebotocore
docs if types are incorrect). - Type annotations include up-to-date documentation.
- Code is processed by black for readability.
Submodules
essential
- Type annotations forcloudformation
,dynamodb
,ec2
,lambda
,rds
,s3
andsqs
services.accessanalyzer
- Type annotations foraccessanalyzer
service.acm
- Type annotations foracm
service.acm-pca
- Type annotations foracm-pca
service.alexaforbusiness
- Type annotations foralexaforbusiness
service.amplify
- Type annotations foramplify
service.apigateway
- Type annotations forapigateway
service.apigatewaymanagementapi
- Type annotations forapigatewaymanagementapi
service.apigatewayv2
- Type annotations forapigatewayv2
service.appconfig
- Type annotations forappconfig
service.application-autoscaling
- Type annotations forapplication-autoscaling
service.application-insights
- Type annotations forapplication-insights
service.appmesh
- Type annotations forappmesh
service.appstream
- Type annotations forappstream
service.appsync
- Type annotations forappsync
service.athena
- Type annotations forathena
service.autoscaling
- Type annotations forautoscaling
service.autoscaling-plans
- Type annotations forautoscaling-plans
service.backup
- Type annotations forbackup
service.batch
- Type annotations forbatch
service.budgets
- Type annotations forbudgets
service.ce
- Type annotations force
service.chime
- Type annotations forchime
service.cloud9
- Type annotations forcloud9
service.clouddirectory
- Type annotations forclouddirectory
service.cloudformation
- Type annotations forcloudformation
service.cloudfront
- Type annotations forcloudfront
service.cloudhsm
- Type annotations forcloudhsm
service.cloudhsmv2
- Type annotations forcloudhsmv2
service.cloudsearch
- Type annotations forcloudsearch
service.cloudsearchdomain
- Type annotations forcloudsearchdomain
service.cloudtrail
- Type annotations forcloudtrail
service.cloudwatch
- Type annotations forcloudwatch
service.codebuild
- Type annotations forcodebuild
service.codecommit
- Type annotations forcodecommit
service.codedeploy
- Type annotations forcodedeploy
service.codeguru-reviewer
- Type annotations forcodeguru-reviewer
service.codeguruprofiler
- Type annotations forcodeguruprofiler
service.codepipeline
- Type annotations forcodepipeline
service.codestar
- Type annotations forcodestar
service.codestar-notifications
- Type annotations forcodestar-notifications
service.cognito-identity
- Type annotations forcognito-identity
service.cognito-idp
- Type annotations forcognito-idp
service.cognito-sync
- Type annotations forcognito-sync
service.comprehend
- Type annotations forcomprehend
service.comprehendmedical
- Type annotations forcomprehendmedical
service.compute-optimizer
- Type annotations forcompute-optimizer
service.config
- Type annotations forconfig
service.connect
- Type annotations forconnect
service.connectparticipant
- Type annotations forconnectparticipant
service.cur
- Type annotations forcur
service.dataexchange
- Type annotations fordataexchange
service.datapipeline
- Type annotations fordatapipeline
service.datasync
- Type annotations fordatasync
service.dax
- Type annotations fordax
service.devicefarm
- Type annotations fordevicefarm
service.directconnect
- Type annotations fordirectconnect
service.discovery
- Type annotations fordiscovery
service.dlm
- Type annotations fordlm
service.dms
- Type annotations fordms
service.docdb
- Type annotations fordocdb
service.ds
- Type annotations fords
service.dynamodb
- Type annotations fordynamodb
service.dynamodbstreams
- Type annotations fordynamodbstreams
service.ebs
- Type annotations forebs
service.ec2
- Type annotations forec2
service.ec2-instance-connect
- Type annotations forec2-instance-connect
service.ecr
- Type annotations forecr
service.ecs
- Type annotations forecs
service.efs
- Type annotations forefs
service.eks
- Type annotations foreks
service.elastic-inference
- Type annotations forelastic-inference
service.elasticache
- Type annotations forelasticache
service.elasticbeanstalk
- Type annotations forelasticbeanstalk
service.elastictranscoder
- Type annotations forelastictranscoder
service.elb
- Type annotations forelb
service.elbv2
- Type annotations forelbv2
service.emr
- Type annotations foremr
service.es
- Type annotations fores
service.events
- Type annotations forevents
service.firehose
- Type annotations forfirehose
service.fms
- Type annotations forfms
service.forecast
- Type annotations forforecast
service.forecastquery
- Type annotations forforecastquery
service.frauddetector
- Type annotations forfrauddetector
service.fsx
- Type annotations forfsx
service.gamelift
- Type annotations forgamelift
service.glacier
- Type annotations forglacier
service.globalaccelerator
- Type annotations forglobalaccelerator
service.glue
- Type annotations forglue
service.greengrass
- Type annotations forgreengrass
service.groundstation
- Type annotations forgroundstation
service.guardduty
- Type annotations forguardduty
service.health
- Type annotations forhealth
service.iam
- Type annotations foriam
service.imagebuilder
- Type annotations forimagebuilder
service.importexport
- Type annotations forimportexport
service.inspector
- Type annotations forinspector
service.iot
- Type annotations foriot
service.iot-data
- Type annotations foriot-data
service.iot-jobs-data
- Type annotations foriot-jobs-data
service.iot1click-devices
- Type annotations foriot1click-devices
service.iot1click-projects
- Type annotations foriot1click-projects
service.iotanalytics
- Type annotations foriotanalytics
service.iotevents
- Type annotations foriotevents
service.iotevents-data
- Type annotations foriotevents-data
service.iotsecuretunneling
- Type annotations foriotsecuretunneling
service.iotthingsgraph
- Type annotations foriotthingsgraph
service.kafka
- Type annotations forkafka
service.kendra
- Type annotations forkendra
service.kinesis
- Type annotations forkinesis
service.kinesis-video-archived-media
- Type annotations forkinesis-video-archived-media
service.kinesis-video-media
- Type annotations forkinesis-video-media
service.kinesis-video-signaling
- Type annotations forkinesis-video-signaling
service.kinesisanalytics
- Type annotations forkinesisanalytics
service.kinesisanalyticsv2
- Type annotations forkinesisanalyticsv2
service.kinesisvideo
- Type annotations forkinesisvideo
service.kms
- Type annotations forkms
service.lakeformation
- Type annotations forlakeformation
service.lambda
- Type annotations forlambda
service.lex-models
- Type annotations forlex-models
service.lex-runtime
- Type annotations forlex-runtime
service.license-manager
- Type annotations forlicense-manager
service.lightsail
- Type annotations forlightsail
service.logs
- Type annotations forlogs
service.machinelearning
- Type annotations formachinelearning
service.macie
- Type annotations formacie
service.managedblockchain
- Type annotations formanagedblockchain
service.marketplace-catalog
- Type annotations formarketplace-catalog
service.marketplace-entitlement
- Type annotations formarketplace-entitlement
service.marketplacecommerceanalytics
- Type annotations formarketplacecommerceanalytics
service.mediaconnect
- Type annotations formediaconnect
service.mediaconvert
- Type annotations formediaconvert
service.medialive
- Type annotations formedialive
service.mediapackage
- Type annotations formediapackage
service.mediapackage-vod
- Type annotations formediapackage-vod
service.mediastore
- Type annotations formediastore
service.mediastore-data
- Type annotations formediastore-data
service.mediatailor
- Type annotations formediatailor
service.meteringmarketplace
- Type annotations formeteringmarketplace
service.mgh
- Type annotations formgh
service.migrationhub-config
- Type annotations formigrationhub-config
service.mobile
- Type annotations formobile
service.mq
- Type annotations formq
service.mturk
- Type annotations formturk
service.neptune
- Type annotations forneptune
service.networkmanager
- Type annotations fornetworkmanager
service.opsworks
- Type annotations foropsworks
service.opsworkscm
- Type annotations foropsworkscm
service.organizations
- Type annotations fororganizations
service.outposts
- Type annotations foroutposts
service.personalize
- Type annotations forpersonalize
service.personalize-events
- Type annotations forpersonalize-events
service.personalize-runtime
- Type annotations forpersonalize-runtime
service.pi
- Type annotations forpi
service.pinpoint
- Type annotations forpinpoint
service.pinpoint-email
- Type annotations forpinpoint-email
service.pinpoint-sms-voice
- Type annotations forpinpoint-sms-voice
service.polly
- Type annotations forpolly
service.pricing
- Type annotations forpricing
service.qldb
- Type annotations forqldb
service.qldb-session
- Type annotations forqldb-session
service.quicksight
- Type annotations forquicksight
service.ram
- Type annotations forram
service.rds
- Type annotations forrds
service.rds-data
- Type annotations forrds-data
service.redshift
- Type annotations forredshift
service.rekognition
- Type annotations forrekognition
service.resource-groups
- Type annotations forresource-groups
service.resourcegroupstaggingapi
- Type annotations forresourcegroupstaggingapi
service.robomaker
- Type annotations forrobomaker
service.route53
- Type annotations forroute53
service.route53domains
- Type annotations forroute53domains
service.route53resolver
- Type annotations forroute53resolver
service.s3
- Type annotations fors3
service.s3control
- Type annotations fors3control
service.sagemaker
- Type annotations forsagemaker
service.sagemaker-a2i-runtime
- Type annotations forsagemaker-a2i-runtime
service.sagemaker-runtime
- Type annotations forsagemaker-runtime
service.savingsplans
- Type annotations forsavingsplans
service.schemas
- Type annotations forschemas
service.sdb
- Type annotations forsdb
service.secretsmanager
- Type annotations forsecretsmanager
service.securityhub
- Type annotations forsecurityhub
service.serverlessrepo
- Type annotations forserverlessrepo
service.service-quotas
- Type annotations forservice-quotas
service.servicecatalog
- Type annotations forservicecatalog
service.servicediscovery
- Type annotations forservicediscovery
service.ses
- Type annotations forses
service.sesv2
- Type annotations forsesv2
service.shield
- Type annotations forshield
service.signer
- Type annotations forsigner
service.sms
- Type annotations forsms
service.sms-voice
- Type annotations forsms-voice
service.snowball
- Type annotations forsnowball
service.sns
- Type annotations forsns
service.sqs
- Type annotations forsqs
service.ssm
- Type annotations forssm
service.sso
- Type annotations forsso
service.sso-oidc
- Type annotations forsso-oidc
service.stepfunctions
- Type annotations forstepfunctions
service.storagegateway
- Type annotations forstoragegateway
service.sts
- Type annotations forsts
service.support
- Type annotations forsupport
service.swf
- Type annotations forswf
service.textract
- Type annotations fortextract
service.transcribe
- Type annotations fortranscribe
service.transfer
- Type annotations fortransfer
service.translate
- Type annotations fortranslate
service.waf
- Type annotations forwaf
service.waf-regional
- Type annotations forwaf-regional
service.wafv2
- Type annotations forwafv2
service.workdocs
- Type annotations forworkdocs
service.worklink
- Type annotations forworklink
service.workmail
- Type annotations forworkmail
service.workmailmessageflow
- Type annotations forworkmailmessageflow
service.workspaces
- Type annotations forworkspaces
service.xray
- Type annotations forxray
service.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy_boto3-1.10.36.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b284dec155281b9c192e27a82f6c2ecdd71420efe7bd75fe7995ea5e1b7a0bd |
|
MD5 | 1e5cf2b6d2231328aed468230b166291 |
|
BLAKE2b-256 | 1aa7a61204268cbfcbe4ab85ec24c1c881b8b5438c76cc48c65df0e2feaa3ddc |