{"library":"mypy-boto3-invoicing","title":"Type Annotations for boto3 Invoicing","description":"mypy-boto3-invoicing provides comprehensive type annotations for the AWS boto3 Invoicing service. It offers static type checking compatibility for `boto3.client(\"invoicing\")`, `boto3.resource(\"invoicing\")`, and associated response/request `TypeDefs`, enhancing developer experience with auto-completion and early error detection. The library is automatically generated and regularly updated to reflect the latest boto3 versions.","language":"python","status":"active","last_verified":"Thu May 14","install":{"commands":["pip install mypy-boto3-invoicing boto3 mypy"],"cli":null},"imports":["from mypy_boto3_invoicing.client import InvoicingClient","from mypy_boto3_invoicing.type_defs import GetInvoicesOutputTypeDef"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import boto3\nfrom mypy_boto3_invoicing.client import InvoicingClient\nfrom mypy_boto3_invoicing.type_defs import GetInvoicesOutputTypeDef\n\ndef get_invoices(invoice_id: str) -> GetInvoicesOutputTypeDef:\n    # Using type annotation for the client enables auto-completion and type checking\n    client: InvoicingClient = boto3.client(\"invoicing\")\n    response: GetInvoicesOutputTypeDef = client.get_invoices(InvoiceId=invoice_id)\n    print(f\"Invoice Status: {response.get('Status')}\")\n    return response\n\n# Example usage (replace with actual invoice ID if running)\nif __name__ == \"__main__\":\n    # Invoicing is not a public AWS service, this is a placeholder example.\n    # Replace with actual Invoicing API calls if available or adapt for other boto3 services.\n    try:\n        # This call will likely fail for a non-existent/public 'invoicing' service.\n        # The purpose here is to demonstrate type hinting.\n        result = get_invoices(invoice_id=\"invoice-123\")\n    except Exception as e:\n        print(f\"Caught expected exception for example: {e}\")","lang":"python","description":"This example demonstrates how to obtain a type-hinted Invoicing client and use a specific `TypeDef` for its response. Note that 'invoicing' is generally not a publicly exposed boto3 service, and this example primarily serves to illustrate the type-hinting mechanism for a typical `mypy-boto3` service. For actual AWS services, replace `invoicing` with an available service like `s3` or `ec2`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-14","installed_version":"1.43.6","pypi_latest":"1.43.6","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":5.8,"avg_import_s":0.64,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.61,"mem_mb":13,"disk_size":"114.7M"},{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.59,"mem_mb":12.9,"disk_size":"109.7M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":6.2,"import_time_s":0.43,"mem_mb":13,"disk_size":"113M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.44,"mem_mb":12.9,"disk_size":"109M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.75,"mem_mb":14.7,"disk_size":"120.9M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.89,"mem_mb":14.6,"disk_size":"115.8M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":5.8,"import_time_s":0.66,"mem_mb":14.7,"disk_size":"120M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.95,"mem_mb":14.6,"disk_size":"115M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.64,"mem_mb":14,"disk_size":"112.6M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.73,"mem_mb":13.8,"disk_size":"107.4M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":5.2,"import_time_s":0.67,"mem_mb":14,"disk_size":"111M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.73,"mem_mb":13.8,"disk_size":"106M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.67,"mem_mb":14.9,"disk_size":"112.4M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.7,"mem_mb":14.8,"disk_size":"107.2M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":4.9,"import_time_s":0.66,"mem_mb":14.9,"disk_size":"111M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","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.8,"disk_size":"106M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.44,"mem_mb":12.2,"disk_size":"106.2M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.55,"mem_mb":12.2,"disk_size":"105.5M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":6.8,"import_time_s":0.46,"mem_mb":12.2,"disk_size":"105M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mypy-boto3-invoicing","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.49,"mem_mb":12.2,"disk_size":"104M"}]}}