Type annotations for boto3.Pricing 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-pricing
Type annotations for boto3.Pricing 1.13.24 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_pricing
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_pricing as pricing
from mypy_boto3_pricing import PricingClient
# with these
from mypy_boto3 import pricing
from mypy_boto3.pricing import PricingClient
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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4ab41b3b06692417028e6c171fe85962c3319bb0f82273585896af3fe47c15 |
|
MD5 | 151c225008d5be9b7a74dae960d921ab |
|
BLAKE2b-256 | 4911e7c05b3327689264c202e807c9e7b9f68a78b34526cce66810b54cca2285 |
Hashes for mypy_boto3_pricing-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce731a44b46ea0b72659ec8b2a20bafe6f17503a9d96b665398d309e9800493 |
|
MD5 | d573d3b7f313dfbdc00157fd727f69b8 |
|
BLAKE2b-256 | 7aa0903730b3ac429cd8388cd9813b56d41c51e7ec046a21b6e55477bd3b003b |