botoinator
A decoration mechanism for boto3 that allows automatic decoration of any and all boto3 clients and resources
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 botoinatoruv
uv add botoinatorpoetry
poetry add botoinatorInstalling 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
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
undecoratedStrips decorators from Python functions,…
permissive · top 15,000 on PyPI
wraptwrapt provides a Python module for building…
permissive · top 100 on PyPI
venusianVenusian defers decorator actions from import…
permissive · top 5,000 on PyPI
backoffProvides function decorators to automatically…
permissive · top 1,000 on PyPI
fan-toolsA collection of internal testing utilities,…
permissive · top 15,000 on PyPI
singleton-decoratorProvides a decorator that enforces singleton…
copyleft · top 15,000 on PyPI
awsretryA decorator that wraps AWS API calls to…
permissive · top 15,000 on PyPI
aws-error-utilsWraps botocore ClientError exceptions to…
permissive · top 15,000 on PyPI
atpublicProvides @public and @private decorators to…
permissive · top 5,000 on PyPI
logdecoratorLogdecorator provides Python decorators to add…
permissive · top 15,000 on PyPI