$npx skillfedfor your agent

aws-error-utils

Error-handling functions for boto3/botocore

Worth itPyPI UtilitiesReleased Nov 2022376.4K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — aws_error_utils-2.7.0-py3-none-any.whl
v2.7.0 · released 2022-11-03 · Python >=3.7,<4 · 1 runtime deps: botocore

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python wheel with only botocore as a runtime dependency.
  • Maintenance is dormant (last release 2022-11-03, no commits since 2023-11-11), but the package is marked Production/Stable and has no known vulnerabilities, suggesting it is feature-complete rather than abandoned.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 is permissive; you may use, modify, and distribute this package freely in commercial and private projects, provided you retain the license notice.

last release 2022-11-03 (1380 days) · last repo commit 2023-11-11 · 153 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 376,394 downloads/mo, #7,129 on PyPI

Verify before relying

from aws_error_utils import errors, catch_aws_error, get_aws_error_info

# Catch by error code as exception type
except errors.NoSuchBucket as error:
    print(error.message)

# Or use catch_aws_error() for complex matching
except catch_aws_error('NoSuchBucket') as error:
    print(error.code, error.http_status_code)
  • Whether error code tab completion is available in modern IDEs despite the lack of a comprehensive botocore error code registry.
  • Performance characteristics when using catch_aws_error() with multiple error codes versus the errors class.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

aws-error-utils on PyPI

Before you install

Low friction: pure Python wheel with only botocore as a runtime dependency. Maintenance is dormant (last release 2022-11-03, no commits since 2023-11-11), but the package is marked Production/Stable and has no known vulnerabilities, suggesting it is feature-complete rather than abandoned.

License in practice

Apache-2.0 is permissive; you may use, modify, and distribute this package freely in commercial and private projects, provided you retain the license notice.

Quickstart

from aws_error_utils import errors, catch_aws_error, get_aws_error_info

# Catch by error code as exception type
except errors.NoSuchBucket as error:
    print(error.message)

# Or use catch_aws_error() for complex matching
except catch_aws_error('NoSuchBucket') as error:
    print(error.code, error.http_status_code)

Verify before relying

  • Whether error code tab completion is available in modern IDEs despite the lack of a comprehensive botocore error code registry.
  • Performance characteristics when using catch_aws_error() with multiple error codes versus the errors class.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.7,<4
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
botocore
MaintenanceDormant 1,380 days since the last release
Last repo commit
First released
Downloads376,394 / month, #7,129 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities

Evidence: aws_error_utils-2.7.0-py3-none-any.whl

Tags

Capabilities
boto3 error handlingbotocore exception wrapperAWS error code matchingClientError parsingAWS error info extractionbotocore error codesexception utilities
Topics
awserror-handling

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “boto3 error handling”

  • aws-error-utilsWraps botocore ClientError exceptions to provide Pythonic access to…
  • safe-initSafe Init wraps AWS Lambda handlers to provide automatic error…
  • awsretryA decorator that wraps AWS API calls to automatically retry on common…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also awsretry · s3urls · botoinator · localstack-client · boto3-type-annotations · boto3 · boto3-type-annotations-with-docs · amazon-sns-extended-client · moto · aiobotocore