Type annotations for boto3.Pricing 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-pricing
Type annotations for boto3.Pricing 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 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.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d55baf57919a107801a9494fcec6d37bbd1dac340c6d8e4e4c26d63ae7c2b8 |
|
MD5 | 2638f8561d0d407f3e8f9f64f79f0812 |
|
BLAKE2b-256 | 4e830a91b2c8b906ce33614eb7494954154eb6f1546a915f0f0bad6d4ad4d584 |
Hashes for mypy_boto3_pricing-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d293d6dcd22b5d85ecd175d1858da4e9e5c3888346096f9b2a01ab0c52eefdb5 |
|
MD5 | aa02d02205e31757e1e2e8738af2ddde |
|
BLAKE2b-256 | b366b9db3823617721c728cb8201c3c2c02e947b926fa67f01800705c2ba0cf5 |