Type annotations for boto3.Pricing 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-pricing
Type annotations for boto3.Pricing 1.14.0 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 Pricing
service.
python -m pip install boto3-stubs[pricing]
Use boto3
with mypy_boto3_pricing
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_pricing import PricingClient
# Now mypy can check if your code is valid.
client: PricingClient = boto3.client("pricing")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: PricingClient = session.client("pricing")
# Annotated paginators are included as well
import mypy_boto3_pricing.paginator as pricing_paginators
describe_services_paginator: pricing_paginators.DescribeServicesPaginator = client.get_paginator("describe_services")
get_attribute_values_paginator: pricing_paginators.GetAttributeValuesPaginator = client.get_paginator("get_attribute_values")
get_products_paginator: pricing_paginators.GetProductsPaginator = client.get_paginator("get_products")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_pricing
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("pricing")
session_client = boto3.Session().client("pricing")
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-pricing-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f8da5b3fe813437e83843f312ddabb1a9c4a2bc822d92cad810c68163abdd0 |
|
MD5 | 04e78c68ce088bc36936225d6597e1a9 |
|
BLAKE2b-256 | c033a5b5bcebba36652278fb92a1ff36f3b7ce0e334bb7086baeaef67d2afe83 |
Hashes for mypy_boto3_pricing-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 949e4f240fad620bbeb44ff1f182b15ddaf84a5038d977e4bbea3bd66d4fd81a |
|
MD5 | d3c76b7a8d1f71138ca99c01d40601ed |
|
BLAKE2b-256 | ffaa058aa75297ea23e9874ead7f591904cf95f740485b8ef26112b2581763fb |