Type annotations for boto3.Route53Domains 1.14.0 service, generated by mypy-boto3-buider 2.1.0
Project description
mypy-boto3-route53domains
Type annotations for boto3.Route53Domains 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.1.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Route53Domains
service.
python -m pip install boto3-stubs[route53domains]
How to use
Client annotations
Route53DomainsClient
provides annotations for boto3.client("route53domains")
.
import boto3
from mypy_boto3_route53domains import Route53DomainsClient
client: Route53DomainsClient = boto3.client("route53domains")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: Route53DomainsClient = session.client("route53domains")
Paginators annotations
mypy_boto3_route53domains.paginator
module contains type annotations for all paginators.
from mypy_boto3_route53domains import Route53DomainsClient
from mypy_boto3_route53domains.paginator import (
ListDomainsPaginator,
ListOperationsPaginator,
ViewBillingPaginator,
)
client: Route53DomainsClient = boto3.client("route53domains")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_domains_paginator: ListDomainsPaginator = client.get_paginator("list_domains")
list_operations_paginator: ListOperationsPaginator = client.get_paginator("list_operations")
view_billing_paginator: ViewBillingPaginator = client.get_paginator("view_billing")
Typed dictionations
mypy_boto3_route53domains.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_route53domains.type_defs import BillingRecordTypeDef, ...
def get_structure() -> BillingRecordTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_route53domains
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("route53domains")
session_client = boto3.Session().client("route53domains")
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-route53domains-1.14.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a9da21b2a8c2c1227febbca5da80e318748bf1a9881df90777b37f0c8099478 |
|
MD5 | be94e5bedda63a58eae4be61335d899d |
|
BLAKE2b-256 | 95dc27be262131639852cd4442b37ea68e0fd7fdbcdc7568c6bedcd382e462e5 |
Hashes for mypy_boto3_route53domains-1.14.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 105139e0d748de4fa0db3905aec7e94c19f1694e1f2c81860c330314089a8663 |
|
MD5 | 6347485a94137091cef2d53cbd3cf8d2 |
|
BLAKE2b-256 | be828b5411e452c8ace234b6b52a9f91002d05b0ec8ebc65457c38d1476ab0f3 |