skillfed

botoinator

A decoration mechanism for boto3 that allows automatic decoration of any and all boto3 clients and resources

botoinator v0.0.6 74.8K downloads/30d#14,785 on PyPI3
Permissive license Apache 2.0 Abandoned released

What it is and what it does

Botoinator is a thin wrapper that intercepts the creation of boto3 clients and resources, allowing you to register decorators that will be applied to specific methods. You can decorate methods on a per-session basis (affecting only clients created from that session) or globally (affecting all future clients and resources across any session). This is useful when you want to add cross-cutting behavior—such as logging, metrics, or request transformation—to AWS API calls without modifying your application code at each call site.

The package works by hooking into session objects. You call methods like `register_client_decorator()` or `register_resource_decorator()` to attach a decorator function to a service method, then create clients or resources normally; the decorator is applied automatically. You can also unregister decorators to stop applying them to future clients while leaving already-decorated clients untouched. Because it has no runtime dependencies and is pure Python, installation is straightforward, but the project has not been maintained since June 2020.

Use it for:

  • Add request/response logging to all S3 or DynamoDB calls across your application without wrapping each call site.
  • Implement automatic retry logic with exponential backoff for transient AWS API failures at the decorator level.
  • Inject metrics or tracing into method calls for observability without modifying application code.
  • Enforce request validation or sanitization on calls before they reach AWS.
  • Apply rate limiting or quota enforcement to specific methods across your codebase.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Botoinator lets you attach decorators to boto3 client and resource methods at the session or global level, enabling cross-cutting concerns like logging or monitoring on AWS API calls.

No. While the concept is sound and the package is license-permissive, it has been abandoned since June 2020 with no maintenance. There is no guarantee the decorator mechanism remains compatible with current versions of its underlying dependencies. Use only if you are locked into an old environment and cannot upgrade; otherwise, implement decorator logic directly in your code.

Install

botoinator on PyPI

pip

pip install botoinator

uv

uv add botoinator

poetry

poetry add botoinator

Installing botoinator

Before you install

Installation is frictionless—a pure-Python wheel with no runtime dependencies. However, the project has been abandoned since June 2020, so expect no maintenance, bug fixes, or compatibility patches.

License in practice

Licensed under Apache 2.0 (permissive), so you can use, modify, and distribute it freely in commercial and open-source projects without restriction.

Quickstart

import botoinator

def my_decorator(func):
    def wrapper(*args, **kwargs):
        print(f"Calling {func.__name__}")
        return func(*args, **kwargs)
    return wrapper

session.register_client_decorator('s3', 'put_object', my_decorator)

Requires a boto3 session object to be available; no guarantee of compatibility with versions released after June 2020.

Verify before relying

  • Whether the decorator mechanism remains compatible with boto3 versions released after June 2020.
  • Whether the package works correctly with Python versions beyond 3.7 (the only version listed in classifiers).
  • Whether the package has any undiscovered security issues despite zero OSV records as of August 2026.

Package facts

License Apache 2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 2,261 days since the last release
Last repo commit
First released
Downloads 74,837/month — #14,785 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: botoinator-0.0.6-py2.py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.7

Tags

boto3 method decorationaws client interceptorboto3 decorator frameworkapply decorators to boto3boto3 session decoratoraws api call wrapperboto3 method wrapping
aws-integrationdecorator-frameworkabandoned

More Software Development packages