Type annotations for boto3.ServiceQuotas 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-service-quotas
Type annotations for boto3.ServiceQuotas 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 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.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 116ceec7f4bfd131b4bfcd8a7eaee880d9c580464afef08683e8cb89fb5b324c |
|
MD5 | dacc6f90b253e83c786e260161c1e57b |
|
BLAKE2b-256 | a363ff3e769b1ee636b508827488763d03e144e2bb6e42e081e550a2f3d35e7f |
Hashes for mypy_boto3_service_quotas-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a1ffb637f23f7bd17a2e31bdebb01be69c5d4482c4169c32795f3d0243ff49 |
|
MD5 | 08f6e186028d73e305f29a06c9d25b9d |
|
BLAKE2b-256 | 9a441d11b04518a16ec05a3d2a3fb26d3b38b6d71e70bca2c6ed89a7272d19fe |