Type annotations for boto3.GameLift 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-gamelift
Type annotations for boto3.GameLift 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 GameLift
service.
python -m pip install boto3-stubs[gamelift]
Use boto3
with mypy_boto3_gamelift
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_gamelift import GameLiftClient
# Now mypy can check if your code is valid.
client: GameLiftClient = boto3.client("gamelift")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: GameLiftClient = session.client("gamelift")
# Annotated paginators are included as well
import mypy_boto3_gamelift.paginator as gamelift_paginators
describe_fleet_attributes_paginator: gamelift_paginators.DescribeFleetAttributesPaginator = client.get_paginator("describe_fleet_attributes")
describe_fleet_capacity_paginator: gamelift_paginators.DescribeFleetCapacityPaginator = client.get_paginator("describe_fleet_capacity")
describe_fleet_events_paginator: gamelift_paginators.DescribeFleetEventsPaginator = client.get_paginator("describe_fleet_events")
describe_fleet_utilization_paginator: gamelift_paginators.DescribeFleetUtilizationPaginator = client.get_paginator("describe_fleet_utilization")
describe_game_session_details_paginator: gamelift_paginators.DescribeGameSessionDetailsPaginator = client.get_paginator("describe_game_session_details")
describe_game_session_queues_paginator: gamelift_paginators.DescribeGameSessionQueuesPaginator = client.get_paginator("describe_game_session_queues")
describe_game_sessions_paginator: gamelift_paginators.DescribeGameSessionsPaginator = client.get_paginator("describe_game_sessions")
describe_instances_paginator: gamelift_paginators.DescribeInstancesPaginator = client.get_paginator("describe_instances")
describe_matchmaking_configurations_paginator: gamelift_paginators.DescribeMatchmakingConfigurationsPaginator = client.get_paginator("describe_matchmaking_configurations")
describe_matchmaking_rule_sets_paginator: gamelift_paginators.DescribeMatchmakingRuleSetsPaginator = client.get_paginator("describe_matchmaking_rule_sets")
describe_player_sessions_paginator: gamelift_paginators.DescribePlayerSessionsPaginator = client.get_paginator("describe_player_sessions")
describe_scaling_policies_paginator: gamelift_paginators.DescribeScalingPoliciesPaginator = client.get_paginator("describe_scaling_policies")
list_aliases_paginator: gamelift_paginators.ListAliasesPaginator = client.get_paginator("list_aliases")
list_builds_paginator: gamelift_paginators.ListBuildsPaginator = client.get_paginator("list_builds")
list_fleets_paginator: gamelift_paginators.ListFleetsPaginator = client.get_paginator("list_fleets")
search_game_sessions_paginator: gamelift_paginators.SearchGameSessionsPaginator = client.get_paginator("search_game_sessions")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_gamelift
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("gamelift")
session_client = boto3.Session().client("gamelift")
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-gamelift-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 960666649b43e4f0aed28dca120e2b375dbe0d47494cb2779175bcd72daf904d |
|
MD5 | 735b442b5a4714a64678f136c8ac0679 |
|
BLAKE2b-256 | 207b5309b274f0fbd362f1ca208a5fb753f8a5519cfec6f312559176a067b853 |
Hashes for mypy_boto3_gamelift-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffb4d34d559ff1cd226bd3bccbc6dd76279ad806f6da342d7e825245503b683e |
|
MD5 | 76b117f4bb9f7efa48e6090bfa9f982c |
|
BLAKE2b-256 | e0cc7fe9ca3f3e0c2b4483b6cd013ddb4eecb4b560317dd6d849d33900c642dc |