Type annotations for boto3.GameLift 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-gamelift
Type annotations for boto3.GameLift 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.3.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_gamelift
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_gamelift as gamelift
from mypy_boto3_gamelift import GameLiftClient
# with these
from mypy_boto3 import gamelift
from mypy_boto3.gamelift import GameLiftClient
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.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5bc5cfc98e901e155ea1bb2fafeabb7c47fdd06be8712ebce570e1951440f1 |
|
MD5 | e135680bed47646b0b0ea087c9acc79a |
|
BLAKE2b-256 | 08f63357e7c9b7ed48978acb87f97dc2c6aec454c89f9d6b9b1b312c5987cf10 |
Hashes for mypy_boto3_gamelift-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96963c366e771245d5c55c3fdb3aa78b349bac157a3413cae89c43da65d0744b |
|
MD5 | a7825dc15026b0d4181c479b1916d50b |
|
BLAKE2b-256 | c70653a22d17dbe87a3335bf95e1e91230166a583843ec8bba735de90a0476e4 |