Type annotations for boto3.GameLift 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-gamelift
Type annotations for boto3.GameLift 1.13.25 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502ed6dd336ac6cf867019c12a573b13eda4fa722035cbd72c6d37c689274a1d |
|
MD5 | d515a6fd3b5afd0593e5e5232beb62c3 |
|
BLAKE2b-256 | 367a96838d8b013c6e9ed3d1f42beecd0318ac25f8ed81a4263092df4e732e9b |
Hashes for mypy_boto3_gamelift-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ded6f00419718906ebae0790cea6a2aedb206bd740e8b2f7385c728e98274d8 |
|
MD5 | 42bb3a02df4ebe1e697ba97898020528 |
|
BLAKE2b-256 | 9ed9ab49875a8b523773b887209d3d94b6355a24a8be7478f409f276e98512ed |