# getmoto/moto

A library that allows you to easily mock out tests based on AWS infrastructure.

Repository: https://github.com/getmoto/moto
Canonical: https://ross.abutalabs.com/products/moto
Homepage: http://docs.getmoto.org/en/latest/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: boto, aws, ec2, s3
Last push: 2026-08-25T17:08:30+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4944, "days_push": 8, "days_rel": 11, "gap_med": 14.0, "n_releases_24m": 41}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8626, forks 2243 (observed 2026-08-28T04:10:23.908943+00:00)

## What it is
Moto is a Python library that mocks AWS services so tests can run against simulated AWS infrastructure without real credentials or network calls. It offers decorator/context-manager mocking for boto3, a standalone server mode for non-Python SDKs, and a proxy mode that intercepts AWS requests.

## Use cases
- unit test python code that calls boto3 s3
- mock aws services in pytest without real aws account
- run a fake aws endpoint for non-python sdks
- test lambda code that calls aws services
- simulate multi-account aws resources in tests
- test iam authorization policies locally

## When to choose
- you write python tests against boto3/botocore and want fast, offline mocks
- you need a local fake AWS endpoint for any SDK via server or proxy mode
- you want stateful mocks that track buckets, keys, instances, etc.

## When to avoid
- you need full AWS fidelity, edge cases, or recent service features not yet implemented
- your tests require multithreaded access to mocked state
- you need integration testing against real AWS behavior rather than a simulation

## Facets
- artifact type: library
- maturity: active
- function: testing, mocking, http-server, proxy
- domain: testing, cloud-computing, developer-tools, apis
- platform: python, cross-platform, cli
- tags: aws, boto3, mock-aws-services, unit-testing, s3, ec2, server-mode, proxy-mode, docker

## Member repositories
- getmoto/moto (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.908943+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:52.157053+00:00, confidence not recorded.
  - readme: https://github.com/getmoto/moto (fetched 2026-08-28T04:10:23.908943+00:00, sha 9235d91ca304)
  - homepage: http://docs.getmoto.org/en/latest/ (fetched 2026-08-29T08:26:18.297529+00:00, sha 78b14b46f317)
  - site_page: http://docs.getmoto.org/en/latest/docs/multi_account.html (fetched 2026-08-29T08:26:18.318311+00:00, sha d75bb53e7ebb)
  - site_page: http://docs.getmoto.org/en/latest/docs/aws_config.html (fetched 2026-08-29T08:26:18.316452+00:00, sha 6c9fa065c858)
  - site_page: http://docs.getmoto.org/en/latest/docs/getting_started.html (fetched 2026-08-29T08:26:18.306553+00:00, sha fa1ba1197ac8)
  - site_page: http://docs.getmoto.org/en/latest/docs/server_mode.html (fetched 2026-08-29T08:26:18.309214+00:00, sha 0af2dcc14a10)
  - site_page: http://docs.getmoto.org/en/latest/docs/proxy_mode.html (fetched 2026-08-29T08:26:18.311372+00:00, sha 789fc0a652f1)
  - site_page: http://docs.getmoto.org/en/latest/docs/faq.html (fetched 2026-08-29T08:26:18.313103+00:00, sha 8b7fee618aca)
  - site_page: http://docs.getmoto.org/en/latest/docs/iam.html (fetched 2026-08-29T08:26:18.314788+00:00, sha ee1c802a0a75)
  - site_page: http://docs.getmoto.org/en/latest/docs/releases.html (fetched 2026-08-29T08:26:18.319977+00:00, sha 82c0850cdc15)
- Data as of 2026-08-30T08:39:29.467469+00:00.
