Install & Compatibility
Where this runs
tested against v1.43.0 · 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
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.6s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
RePostPrivateClient
✓ from mypy_boto3_repostspace import RePostPrivateClient
✗ from mypy_boto3_repostspace import RePostPrivateClient
This quickstart demonstrates how to initialize a `boto3` client for the `repostspace` service and use the type annotations provided by `mypy-boto3-repostspace`. It includes an example of listing RePostPrivate spaces, showcasing explicit type hinting for the client and response, which enables static analysis tools like MyPy to validate your code.
import boto3
from mypy_boto3_repostspace.client import RePostPrivateClient
from typing import TYPE_CHECKING
# Optional: only import for type checking purposes
if TYPE_CHECKING:
from mypy_boto3_repostspace.type_defs import ListSpacesResponseTypeDef
def get_repostspace_client() -> RePostPrivateClient:
# Configure AWS credentials if not using environment variables or default profiles
# For this example, assuming credentials are set via environment vars or ~/.aws/credentials
return boto3.client('repostspace')
def list_repost_spaces():
client: RePostPrivateClient = get_repostspace_client()
try:
# Ensure your AWS environment has access to list_spaces in repostspace
response = client.list_spaces()
print("Successfully listed RePostPrivate spaces:")
for space in response.get('Spaces', []):
print(f" Space ID: {space.get('spaceId')}, Name: {space.get('name')}")
except client.exceptions.AccessDeniedException:
print("Access denied. Ensure your AWS credentials have 'repostspace:ListSpaces' permission.")
except Exception as e:
print(f"An error occurred: {e}")
if __name__ == "__main__":
list_repost_spaces()
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0 (November 2025). This affects all generated `mypy-boto3` stub packages, including `mypy-boto3-repostspace` versions 1.42.3 and newer. Users on Python 3.8 must use older `mypy-boto3` versions or upgrade their Python interpreter.fixUpgrade Python to 3.9+ or pin `mypy-boto3-repostspace` to a version compatible with Python 3.8 (e.g., <1.42.3).
affects: mypy-boto3-repostspace >= 1.42.3
breakingTypeDef naming conventions changed in `mypy-boto3-builder` version 8.9.0 (November 2025). Type definition names for method arguments and conflicting types may have been shortened or rearranged (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). This could break existing explicit type annotations in your codebase that referenced the old names.fixReview your codebase for explicit `TypeDef` annotations and update them to reflect the new naming conventions, consulting the `mypy_boto3_repostspace.type_defs` module for the correct names.
affects: mypy-boto3-repostspace >= 1.35.0 (approx, aligns with builder 8.9.0)
gotchaThe `mypy-boto3` packages are PEP 561 compliant stub-only packages. For `mypy` to automatically find and use these type stubs, they must be installed in the same Python environment where `boto3` and your project code reside. Custom or older `MYPYPATH` configurations might not resolve stubs correctly.fixEnsure `mypy-boto3-repostspace` is installed in the active environment (e.g., `venv`) where `mypy` is run. Avoid relying on `MYPYPATH` for stub resolution if encountering issues.
affects: All versions
gotchaFor full type-checking and IDE autocompletion when using `boto3.client()`, it is best practice to explicitly import the specific client type (e.g., `RePostPrivateClient`) from `mypy_boto3_repostspace.client` and use it in your type annotations. Generic `boto3` client calls without explicit type hints may have limited type information.fixAdd type annotations for `boto3` clients using imports from the specific `mypy_boto3_SERVICE.client` module (e.g., `client: RePostPrivateClient = boto3.client('repostspace')`). affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for which these type annotations are generated. Required for executing code.