{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Wraps botocore ClientError exceptions to provide Pythonic access to error codes, messages, HTTP status codes, and operation names without navigating nested dictionaries.","skillfed_tags":["aws","error-handling"],"use_cases":["Catch specific error codes like NoSuchBucket or NoSuchKey without parsing nested dictionaries in except blocks.","Match errors by both error code and operation name when multiple API calls exist in a single try block.","Extract HTTP status codes and error messages from ClientError for logging or custom error reporting.","Use regex or custom callables to match errors based on message content rather than just error codes.","Reduce boilerplate in exception handling code that calls multiple AWS services."],"what_it_does":"aws-error-utils simplifies exception handling for botocore by converting opaque ClientError objects into Pythonic exception classes and named tuples. When botocore raises a ClientError, all error details are buried in nested dictionaries (e.g., error.response['Error']['Code'], error.response['Error']['Message']); this package exposes them as direct attributes (error.code, error.message, error.http_status_code, error.operation_name) and lets you catch specific AWS error codes as exception types (e.g., except errors.NoSuchBucket) rather than inspecting dictionary contents.\n\nThe package provides three main interfaces: the `errors` class for simple error-code matching in except blocks, the `catch_aws_error()` function for more complex conditions (including regex matching or operation-name filtering), and the `get_aws_error_info()` function to extract error metadata from any ClientError. It requires only botocore as a dependency and supports Python 3.7 through 3.11.","worth_installing":"Yes. The package is lightweight (pure Python, one dependency), production-stable, carries no security vulnerabilities, and meaningfully reduces error-handling boilerplate. Dormant maintenance is not a concern because error handling for existing AWS services rarely changes. Install it if you write botocore code with more than a few try-except blocks."},"id":"aws-error-utils","links":{"html":"https://skillfed.io/packages/aws-error-utils","md":"https://skillfed.io/packages/aws-error-utils.md","pypi":"https://pypi.org/project/aws-error-utils/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-11-03","license_spdx":null,"license_treatment":"permissive","name":"aws-error-utils","python_support":"supports_current","summary":"Error-handling functions for boto3/botocore"},"popularity":{"monthly_downloads":376394,"position":7129,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.7.0"}
