{"library":"mypy-boto3-workspaces-web","title":"mypy-boto3-workspaces-web type stubs","description":"mypy-boto3-workspaces-web provides type annotations for the `boto3` WorkSpacesWeb service. It is part of the `mypy-boto3` family of packages, generated by `mypy-boto3-builder`. These stubs enhance developer experience with static type checking and IDE autocomplete for `boto3` clients. The current version is 1.42.51, reflecting the `boto3` version it types, and it follows a continuous release cadence in sync with `boto3` updates.","language":"python","status":"active","last_verified":"Thu May 14","install":{"commands":["pip install mypy-boto3-workspaces-web boto3 mypy"],"cli":null},"imports":["from mypy_boto3_workspaces_web.client import WorkSpacesWebClient","from mypy_boto3_workspaces_web.literals import WorkSpacesWebServiceName","from mypy_boto3_workspaces_web.type_defs import AssociateBrowserSettingsRequestTypeDef"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_workspaces_web.client import WorkSpacesWebClient\n    from mypy_boto3_workspaces_web.type_defs import ListBrowserSettingsResponseTypeDef\n\ndef get_workspaces_web_client() -> 'WorkSpacesWebClient':\n    \"\"\"Returns a typed boto3 WorkSpacesWeb client.\"\"\"\n    return boto3.client(\"workspaces-web\")\n\ndef list_browser_settings_typed() -> ListBrowserSettingsResponseTypeDef:\n    \"\"\"Lists WorkSpaces Web browser settings with type hints.\"\"\"\n    client: WorkSpacesWebClient = get_workspaces_web_client()\n    response = client.list_browser_settings()\n    print(f\"Found {len(response.get('browserSettings', []))} browser settings.\")\n    return response\n\nif __name__ == \"__main__\":\n    # This part requires AWS credentials configured (e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)\n    # It will attempt to call the AWS API.\n    try:\n        list_browser_settings_typed()\n    except Exception as e:\n        print(f\"An error occurred: {e}. Ensure AWS credentials are configured and WorkSpaces Web service is available.\")\n","lang":"python","description":"This quickstart demonstrates how to obtain a type-hinted `boto3` WorkSpacesWeb client and use it with `mypy-boto3-workspaces-web` stubs. It showcases importing the client type and a `TypeDef` for a response, and importantly uses `if TYPE_CHECKING:` to avoid runtime dependencies on the stub package. Remember to configure your AWS credentials for the code to run successfully.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-14","installed_version":"1.43.0","pypi_latest":"1.43.0","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":5.7,"avg_import_s":0.65,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.65,"mem_mb":13.7,"disk_size":"114.9M"},{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.64,"mem_mb":13.6,"disk_size":"109.9M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":6.2,"import_time_s":0.44,"mem_mb":13.7,"disk_size":"113M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.51,"mem_mb":13.6,"disk_size":"109M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.78,"mem_mb":15.4,"disk_size":"121.1M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.92,"mem_mb":15.3,"disk_size":"116.0M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":5.5,"import_time_s":0.7,"mem_mb":15.4,"disk_size":"120M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.75,"mem_mb":15.3,"disk_size":"115M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.63,"mem_mb":14.6,"disk_size":"112.7M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.76,"mem_mb":14.4,"disk_size":"107.6M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":5,"import_time_s":0.77,"mem_mb":14.6,"disk_size":"112M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.78,"mem_mb":14.5,"disk_size":"107M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.62,"mem_mb":15.6,"disk_size":"112.6M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.68,"mem_mb":15.5,"disk_size":"107.4M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":5,"import_time_s":0.65,"mem_mb":15.6,"disk_size":"111M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.88,"mem_mb":15.5,"disk_size":"106M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.48,"mem_mb":12.8,"disk_size":"106.4M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.5,"mem_mb":12.8,"disk_size":"105.7M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":6.6,"import_time_s":0.44,"mem_mb":12.8,"disk_size":"105M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mypy-boto3-workspaces-web","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.47,"mem_mb":12.8,"disk_size":"105M"}]}}