Registry / type-stubs / mypy-boto3-license-manager

mypy-boto3-license-manager

JSON →
library1.43.46pypypi✓ verified 23d ago

mypy-boto3-license-manager provides type annotations (stubs) for the `boto3` AWS SDK's LicenseManager service. It enables static type checking for `boto3` code interacting with License Manager, helping developers catch type-related errors before runtime. This package is part of the `mypy-boto3` ecosystem, generated by `mypy-boto3-builder`. The current version is 1.42.3, closely aligned with `boto3` releases and updated frequently.

pip install mypy-boto3-license-manager
INSTALL
IMPORT
SIG · MYPY-BOTO3-LICENSE
M
mypy-boto3-license-manager
type-stubspythonv1.43.46
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.46 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LicenseManagerClient
from mypy_boto3_license_manager import LicenseManagerClient
from mypy_boto3_license_manager import LicenseManagerClient

This quickstart demonstrates how to initialize a `boto3` client for License Manager and type-annotate it using `LicenseManagerClient`. It also shows how to use generated `TypedDict` for request parameters and response items, allowing `mypy` to validate your API calls.

import boto3 from mypy_boto3_license_manager.client import LicenseManagerClient from mypy_boto3_license_manager.type_defs import ( LicenseConfigurationTypeDef, ListLicenseConfigurationsRequestRequestTypeDef ) import os def get_license_configurations(region: str) -> list[LicenseConfigurationTypeDef]: # It's crucial to explicitly cast the client for mypy to pick up the types client: LicenseManagerClient = boto3.client("license-manager", region_name=region) # Example of using a TypedDict for a request payload request: ListLicenseConfigurationsRequestRequestTypeDef = { "MaxResults": 5, } response = client.list_license_configurations(**request) return response.get("LicenseConfigurations", []) if __name__ == "__main__": # Example usage - ensure AWS credentials are configured (e.g., via env vars or ~/.aws/credentials) # mypy will check this code for type consistency at compile time # actual runtime execution requires valid AWS credentials and region. aws_region = os.environ.get('AWS_REGION_NAME', 'us-east-1') print(f"Fetching License Manager configurations in region: {aws_region}") try: configurations = get_license_configurations(aws_region) if configurations: for config in configurations: print(f" ARN: {config.get('LicenseConfigurationArn')}, Name: {config.get('LicenseConfigurationName')}") else: print(" No license configurations found.") except Exception as e: print(f"Error fetching configurations: {e}")
Debug
Known issues
breakingPython 3.8 support has been removed across the `mypy-boto3` ecosystem. This package, if generated by `mypy-boto3-builder` v8.12.0 or later, will not support Python 3.8.
fix
Upgrade your Python environment to 3.9 or higher. If you require Python 3.8, you might need to pin to an older, compatible version of `mypy-boto3-license-manager`.
affects: Packages generated by `mypy-boto3-builder` v8.12.0 and later (e.g., `mypy-boto3-license-manager==1.42.3`)
breakingTypeDef naming conventions changed in builder version 8.9.0. This includes shortening names for packed method arguments (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`) and moving 'Extra' postfixes to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).
fix
Review your code for any explicit TypeDef annotations and update them to match the new naming conventions. `mypy` will typically highlight these as unknown types.
affects: Packages generated by `mypy-boto3-builder` v8.9.0 and later (e.g., `mypy-boto3-license-manager==1.42.3`)
gotchaThis package (`mypy-boto3-license-manager`) provides type stubs *only* for the LicenseManager service. If you need type annotations for other AWS services (e.g., S3, EC2), you must install their respective `mypy-boto3-SERVICE_NAME` packages. Installing `mypy-boto3` directly will install stubs for all services.
fix
Install the specific `mypy-boto3-SERVICE_NAME` package for each service you use, or `mypy-boto3` for all services (which is a larger installation).
affects: All versions
Upgrade
Version history
1.43.46latest on PyPI · released Jul 10, 2026
Audit
Dependencies
boto3requiredProvides the actual runtime functionality for AWS interactions. This package only adds type annotations.
typing-extensionsoptionalMay be required for full compatibility with older Python versions (e.g., <3.9) to backport newer typing features. Automatically handled by the builder.
Agent activity
14 hits · last 30 days
node
10
OpenAI (training)
2
Resources
mypy-boto3-license-manager — pip install mypy-boto3-license-manager · libregistry