[consent request] Type annotations for boto3
See original GitHub issueHello @swetashre,
I added boto3-stubs that was auto-generated from boto3
source code. Is it okay to keep it public?
It is recognized by mypy
as an interface module for boto3
.
Regards
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:19 (4 by maintainers)
Top Results From Across the Web
class IAM. Client - Boto3 Docs 1.26.33 documentation
The caller of this operation must be granted the PassRole permission on the IAM role ... The permissions boundary usage type that indicates...
Read more >boto3-type-annotations · PyPI
A programmatically created package that defines boto3 services as stand in classes with type annotations. boto3 is an incredibly useful, ...
Read more >Request Inferences from a Deployed Service (Boto3)
You can submit inference requests using SageMaker SDK for Python (Boto3) client and invoke_endpoint() API once you have an SageMaker endpoint InService ....
Read more >Type annotations for boto3 have arrived! : r/Python - Reddit
mypy compatibility as a main goal · Real type annotations. · Subresources are included · modularity, so you can install only services you...
Read more >Typing/Reformatting/Autocomplete lags when stubs for boto3 ...
It still provides all type annotations for boto3 and can be installed with sub-packages, just like boto3-stubs . But it does not provide...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your response!
boto3-stubs
is maintained by me now.More or less the idea is the same - I parse
botocore
shapes to build argument and return type annotations and I also useinspect
with docstring parsing to annotate dynamic methods added byboto3
- this part is missing inbotogen
as I see.What these projects have in common:
botocore
shapesblack
for readabilityMain differences from
botogen
:TypedDict
argument and return types with proper required and optional fieldsTypedDict
annotations support (required fordynamodb
service)Literal
argument type annotations for IDE auto-complete and type checkingboto.client(...).Exceptions
structure for IDE auto-complete and type checkingboto3
boto3
(used ins3
andec2
service and probably some others).botocore
shapes are changed byboto3
sometimes, so shapes give you incorrect method signatures.boto3.client
andboto3.resource
function overloads - basically I generate overloads only for services you have installed. Creating overloads for all services easily killsmypy
andPyCharm
due to high RAM usage.botogen
is missing 3.6 supportboto3
versions and upload to PyPI, so end user can install them withpip
orpoetry
for hisboto3
versionI would like to help the project as my implementation works and covers all
boto3
services andboto3
.botocore
stubs are not included, it was not one of my goals.Let me know if you need any additional info about the project, because I guess it might be useful.
Regards, Vlad.
Hey @swetashre - any updates on this issue? Radio silence for a period of almost one year is a bit concerning.