Type annotations for boto3.GameLift 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-gamelift
Type annotations for boto3.GameLift 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325fe3a671fb59128e8fc5ec6f78ea3f04cef116edcf76e2499663df1f796a77 |
|
MD5 | d218d2752cabd78d729dd2e5b6789db5 |
|
BLAKE2b-256 | a37bdca0a68b959607e17870dde491aeacb63569ff2bdc0da38487c95179180f |
Hashes for mypy_boto3_gamelift-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca575e009f8937b3a768e1355130289eccfb052adc3a41cd153a2a43efb21648 |
|
MD5 | 7fbee84d5e2289d2d2ea46520d751a76 |
|
BLAKE2b-256 | 1a99d712514e434a0488547f27b9f1d79945337aab4e7b200b315048f3f3e9b9 |