Registry / aws / moto-ext

moto-ext

JSON →
library5.1.33pypypi✓ verified 83d ago

moto-ext is an extension of the moto library for mocking AWS services in tests. It provides additional AWS service mocks not included in the core moto package. Current version 5.1.33, requires Python >=3.9. Released as part of the moto ecosystem.

pip install moto-ext
INSTALL
IMPORT
SIG · MOTO-EXT
M
moto-ext
awspythonv5.1.33
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mock_aws
from moto import mock_aws
import moto_ext
backend_index
from moto import backend_index
backends
from moto import backends

Basic usage: use @mock_aws decorator from moto to mock all AWS services, including those provided by moto-ext.

import boto3 from moto import mock_aws from moto_ext import some_mock # replace with actual mock @mock_aws def test_my_function(): client = boto3.client('sns', region_name='us-east-1') response = client.create_topic(Name='test-topic') assert 'TopicArn' in response
Debug
Known issues
breakingmoto-ext is the successor to moto (the original package) for extended AWS mocks. The package name changed from 'moto' to 'moto-ext', but the import path remains 'moto'. Ensure you have installed 'moto-ext' and not just 'moto' to access additional mocks.
fix
Install 'moto-ext' via pip: pip install moto-ext.
affects: <=5.1.33
gotchaDo not import directly from 'moto_ext'. The correct import path is 'moto' (e.g., from moto import mock_aws). moto-ext adds extra mocks to the moto namespace.
fix
Use 'from moto import mock_aws' and all other imports from 'moto'.
affects: >=5.0
deprecatedThe old package name 'moto' is deprecated. Starting from version 5.0, the package has been renamed to 'moto-ext'. Install 'moto-ext' to get updates.
fix
Replace 'pip install moto' with 'pip install moto-ext'.
affects: >=5.0
Upgrade
Version history
5.1.33latest on PyPI · released Apr 27, 2026
Audit
Dependencies
motorequiredmoto-ext depends on moto core for base mock infrastructure and service models.
boto3requiredRequired to interact with AWS services in tests.
Agent activity
20 hits · last 30 days
node
18
Amazon
1
Resources
moto-ext — pip install moto-ext · libregistry