MCPcopy Index your code
hub / github.com/Farama-Foundation/SuperSuit

github.com/Farama-Foundation/SuperSuit @3.11.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.11.0 ↗ · + Follow
515 symbols 1,775 edges 89 files 16 documented · 3% 3 cross-repo links updated 9d ago3.11.0 · 2026-05-31★ 4938 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PyPI version Tests pre-commit Code style: black

<img src="https://raw.githubusercontent.com/Farama-Foundation/SuperSuit/master/supersuit-text.png" width="500px"/>

Aug 11, 2025: This project is semi-depricated, and is unmaintained except for being kept operational with new versions of PettingZoo until the relevant functionality can be merged into pettingzoo.wrappers.

SuperSuit introduces a collection of small functions which can wrap reinforcement learning environments to do preprocessing ('microwrappers'). We support Gymnasium for single agent environments and PettingZoo for multi-agent environments (both AECEnv and ParallelEnv environments).

Using it with Gymnasium to convert space invaders to have a grey scale observation space and stack the last 4 frames looks like:

import gymnasium
from supersuit import color_reduction_v0, frame_stack_v1

env = gymnasium.make('SpaceInvaders-v0')

env = frame_stack_v1(color_reduction_v0(env, 'full'), 4)

Similarly, using SuperSuit with PettingZoo environments looks like

from pettingzoo.butterfly import pistonball_v0
env = pistonball_v0.env()

env = frame_stack_v1(color_reduction_v0(env, 'full'), 4)

Please note: Once the planned wrapper rewrite of Gymnasium is complete and the vector API is stabilized, this project will be deprecated and rewritten as part of a new wrappers package in PettingZoo and the vectorized API will be redone, taking inspiration from the functionality currently in Gymnasium.

Installing SuperSuit

To install SuperSuit from pypi:

python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install supersuit

Alternatively, to install SuperSuit from source, clone this repo, cd to it, and then:

python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -e .

Citation

If you use this in your research, please cite:

@article{SuperSuit,
  Title = {SuperSuit: Simple Microwrappers for Reinforcement Learning Environments},
  Author = {Terry, J. K and Black, Benjamin and Hari, Ananth},
  journal={arXiv preprint arXiv:2008.08932},
  year={2020}
}

Core symbols most depended-on inside this repo

reset
called by 63
test/dummy_aec_env.py
last
called by 28
supersuit/aec_vector/vector_env.py
observation_space
called by 23
test/dummy_aec_env.py
step
called by 23
test/dummy_aec_env.py
get
called by 16
supersuit/utils/accumulator.py
action_space
called by 15
test/dummy_aec_env.py
concat_vec_envs_v1
called by 14
supersuit/vector/vector_constructors.py
dtype_v0
called by 13
supersuit/generic_wrappers/basic_wrappers.py

Shape

Function 253
Method 212
Class 50

Languages

Python100%

Modules by API surface

test/pettingzoo_api_test.py45 symbols
supersuit/aec_vector/async_vector_env.py37 symbols
test/aec_mock_test.py26 symbols
supersuit/generic_wrappers/utils/shared_wrapper_util.py19 symbols
supersuit/vector/multiproc_vec.py16 symbols
supersuit/generic_wrappers/frame_skip.py14 symbols
test/gym_mock_test.py13 symbols
supersuit/vector/concat_vec_env.py13 symbols
supersuit/lambda_wrappers/observation_lambda.py13 symbols
supersuit/generic_wrappers/basic_wrappers.py13 symbols
supersuit/aec_vector/base_aec_vec_env.py12 symbols
supersuit/vector/sb_vector_wrapper.py11 symbols

For agents

$ claude mcp add SuperSuit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page