Type annotations for boto3.GameLift 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2244d2b6b050adeb7c8c8fd833d25e86d79df386f4d44fdd0d2bf836c73d95dc |
|
MD5 | 0762fc90aeddb546992c49ee99e8129e |
|
BLAKE2b-256 | f1d091eb358a8696947f5a265050da34ef354c4e4e688a049f35f2d4efaf4686 |
Hashes for mypy_boto3_gamelift-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c374edd84720c9ecf0f44797fad4157d5ab1af8a9bbeadaedb8b414eafdeec9 |
|
MD5 | 09a2f98c50a19313f82302ede8cfeb5c |
|
BLAKE2b-256 | 5661906e76645838eaf5356b0c482aef3085c622f39d1fe287737004ecd4cd81 |