Type annotations for boto3.Textract 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-textract
Type annotations for boto3.Textract 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Textract
service.
python -m pip install boto3-stubs[textract]
Use boto3
with mypy_boto3_textract
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_textract import TextractClient
# Now mypy can check if your code is valid.
client: TextractClient = boto3.client("textract")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: TextractClient = session.client("textract")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_textract
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does 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("textract")
session_client = boto3.Session().client("textract")
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-textract-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b4445012830486aab6d05567f38daef9043045566e877bfc624dc0512b5638c |
|
MD5 | 3f65380e709c2ab48ad746bf23f1fad8 |
|
BLAKE2b-256 | ad966a51acacd33820056fb3bf3e43a67257317a277db8f06fe69704f419cff5 |
Hashes for mypy_boto3_textract-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c17de2ae9cec13383d5ae52b8d86858eca3b1b51fd1b98db2b69d5a4fa39fb5 |
|
MD5 | 4c28731ef7eb7f1fb173a46d7d165508 |
|
BLAKE2b-256 | fc26e53eb26eba0411c1321ffd47d6f9b60e2ee8c4dd5dd480624608730a76c0 |