Type annotations for boto3.ServiceQuotas 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-service-quotas
Type annotations for boto3.ServiceQuotas 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 ServiceQuotas
service.
python -m pip install boto3-stubs[service-quotas]
Use boto3
with mypy_boto3_service_quotas
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_service_quotas import ServiceQuotasClient
# Now mypy can check if your code is valid.
client: ServiceQuotasClient = boto3.client("service-quotas")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ServiceQuotasClient = session.client("service-quotas")
# Annotated paginators are included as well
import mypy_boto3_service_quotas.paginator as service_quotas_paginators
list_aws_default_service_quotas_paginator: service_quotas_paginators.ListAWSDefaultServiceQuotasPaginator = client.get_paginator("list_aws_default_service_quotas")
list_requested_service_quota_change_history_paginator: service_quotas_paginators.ListRequestedServiceQuotaChangeHistoryPaginator = client.get_paginator("list_requested_service_quota_change_history")
list_requested_service_quota_change_history_by_quota_paginator: service_quotas_paginators.ListRequestedServiceQuotaChangeHistoryByQuotaPaginator = client.get_paginator("list_requested_service_quota_change_history_by_quota")
list_service_quota_increase_requests_in_template_paginator: service_quotas_paginators.ListServiceQuotaIncreaseRequestsInTemplatePaginator = client.get_paginator("list_service_quota_increase_requests_in_template")
list_service_quotas_paginator: service_quotas_paginators.ListServiceQuotasPaginator = client.get_paginator("list_service_quotas")
list_services_paginator: service_quotas_paginators.ListServicesPaginator = client.get_paginator("list_services")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_service_quotas
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("service-quotas")
session_client = boto3.Session().client("service-quotas")
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-service-quotas-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5220a0063f0ed48a5d72a5084eac344ead76be0ed399abdd941df37cc964bcf |
|
MD5 | 1e84df1b5bdd2508ece3b4a631fc612a |
|
BLAKE2b-256 | 0369644e4847b38a4c097eb4efde8356ff077a4ac50aeccc73bf96b99e75922e |
Hashes for mypy_boto3_service_quotas-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953bb7a7e02e2dfcda6fcb5c73548fc7f8ee118b70228e09d09bfec824acb6c4 |
|
MD5 | 8cd41f92e454573cd4346201a0d33542 |
|
BLAKE2b-256 | dfb941f67b93948ea9b365f37c8ca97fbbdbb4c44b720af14852de8b245d27a6 |