Type annotations for boto3.Lightsail 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-lightsail
Type annotations for boto3.Lightsail 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 Lightsail
service.
python -m pip install boto3-stubs[lightsail]
Use boto3
with mypy_boto3_lightsail
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_lightsail import LightsailClient
# Now mypy can check if your code is valid.
client: LightsailClient = boto3.client("lightsail")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: LightsailClient = session.client("lightsail")
# Annotated paginators are included as well
import mypy_boto3_lightsail.paginator as lightsail_paginators
get_active_names_paginator: lightsail_paginators.GetActiveNamesPaginator = client.get_paginator("get_active_names")
get_blueprints_paginator: lightsail_paginators.GetBlueprintsPaginator = client.get_paginator("get_blueprints")
get_bundles_paginator: lightsail_paginators.GetBundlesPaginator = client.get_paginator("get_bundles")
get_cloud_formation_stack_records_paginator: lightsail_paginators.GetCloudFormationStackRecordsPaginator = client.get_paginator("get_cloud_formation_stack_records")
get_disk_snapshots_paginator: lightsail_paginators.GetDiskSnapshotsPaginator = client.get_paginator("get_disk_snapshots")
get_disks_paginator: lightsail_paginators.GetDisksPaginator = client.get_paginator("get_disks")
get_domains_paginator: lightsail_paginators.GetDomainsPaginator = client.get_paginator("get_domains")
get_export_snapshot_records_paginator: lightsail_paginators.GetExportSnapshotRecordsPaginator = client.get_paginator("get_export_snapshot_records")
get_instance_snapshots_paginator: lightsail_paginators.GetInstanceSnapshotsPaginator = client.get_paginator("get_instance_snapshots")
get_instances_paginator: lightsail_paginators.GetInstancesPaginator = client.get_paginator("get_instances")
get_key_pairs_paginator: lightsail_paginators.GetKeyPairsPaginator = client.get_paginator("get_key_pairs")
get_load_balancers_paginator: lightsail_paginators.GetLoadBalancersPaginator = client.get_paginator("get_load_balancers")
get_operations_paginator: lightsail_paginators.GetOperationsPaginator = client.get_paginator("get_operations")
get_relational_database_blueprints_paginator: lightsail_paginators.GetRelationalDatabaseBlueprintsPaginator = client.get_paginator("get_relational_database_blueprints")
get_relational_database_bundles_paginator: lightsail_paginators.GetRelationalDatabaseBundlesPaginator = client.get_paginator("get_relational_database_bundles")
get_relational_database_events_paginator: lightsail_paginators.GetRelationalDatabaseEventsPaginator = client.get_paginator("get_relational_database_events")
get_relational_database_parameters_paginator: lightsail_paginators.GetRelationalDatabaseParametersPaginator = client.get_paginator("get_relational_database_parameters")
get_relational_database_snapshots_paginator: lightsail_paginators.GetRelationalDatabaseSnapshotsPaginator = client.get_paginator("get_relational_database_snapshots")
get_relational_databases_paginator: lightsail_paginators.GetRelationalDatabasesPaginator = client.get_paginator("get_relational_databases")
get_static_ips_paginator: lightsail_paginators.GetStaticIpsPaginator = client.get_paginator("get_static_ips")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_lightsail
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("lightsail")
session_client = boto3.Session().client("lightsail")
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-lightsail-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a01c6637f41801dcbfa9945af8a8e620b082bdcc7b7e5c5754660c920829b9 |
|
MD5 | 25f10c67d1927de46258b8e56aa92f8a |
|
BLAKE2b-256 | 2e0259a516f180235e8dea97e9f064478ea00a81f7ff5549145348c92bc3d2ce |
Hashes for mypy_boto3_lightsail-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57eacebb2988b1535b64dcbb4d49ddf2a6155e2ede8652e13561c7a09c4bfad2 |
|
MD5 | 7d932883693c35c140a82759f3c03272 |
|
BLAKE2b-256 | 7c1e3dcff19046666646ee977a4c8edb1f12fab088e4585daeaec991b15e5c0b |