Type annotations for boto3 1.14.37 master module, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3
Dynamic boto3 1.14.37 type annotations builder for boto3-stubs.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
# Install type annotations for boto3 services you use
# mypy-boto3 should be installed as a dependency
python -m pip install 'boto3-stubs[s3,ec2]'
How to uninstall
# remove generated files and cache
python -m mypy_boto3 --clean
python -m pip uninstall mypy_boto3
Usage
Generate dynamic type annotations for services you installed
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated files
mypy_boto3 command creates or updates these files in it's installation directory:
boto3_init_gen.py- annotations forboto3.client/resourceboto3_session_gen.py- annotations forboto3.Session().client/resourcecache.txt- information about installed services<service>/__init__.py- Allows to usemypy_boto3.s3import instead ofmypy_boto3_s3<service>/client.py- Allows to usemypy_boto3.s3.clientimport instead ofmypy_boto3_s3.client<service>/type_defs.py- Allows to usemypy_boto3.s3.type_defsimport instead ofmypy_boto3_s3.type_defs<service>/service_resource.py- Allows to usemypy_boto3.s3.service_resourceimport instead ofmypy_boto3_s3.service_resource<service>/waiter.py- Allows to usemypy_boto3.s3.waiterimport instead ofmypy_boto3_s3.waiter<service>/paginator.py- Allows to usemypy_boto3.s3.paginatorimport instead ofmypy_boto3_s3.paginator
<service> is boto3 service name, e.g. s3. For lambda service, it is mypy_boto3.lambda_.
Dynamic type annotations
Generated files provide overloads for boto3.client, boto3.resource,
boto3.Session.client and boto3.Session.resource functions for services currently installed,
so explicit type annotations are not needed.
mypysupports function overloads as expectedPyCharmalso supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCodedoes not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("s3")
resource = boto3.resource("s3")
session_client = boto3.Session().client("s3")
session_resource = boto3.Session().resource("s3")
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mypy-boto3-1.14.37.0.tar.gz.
File metadata
- Download URL: mypy-boto3-1.14.37.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20fddd4628e9e8aade69c466cedfdfcc215bb79f89f9fcc1a5f9e083b5931c33
|
|
| MD5 |
cfed13f68396964d09d7304cc74becc0
|
|
| BLAKE2b-256 |
8e951d481ae0ece67ee310d1c297f976935701b52b7877bc4cbe78933a08b22d
|
File details
Details for the file mypy_boto3-1.14.37.0-py3-none-any.whl.
File metadata
- Download URL: mypy_boto3-1.14.37.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48e306d9c4a91e397928d93016aebf0e6fa41a29a401c8e8fa9fb3335016f18b
|
|
| MD5 |
a1a9e4cf6ef87d4206b441c7b37b1f0c
|
|
| BLAKE2b-256 |
1884d55037738ae927a76ab24eb09605d04c3076db838734d30e822001077034
|