Skip to main content

MAgent2 is a library for the creation of environments where large numbers of pixel agents in a gridworld interact in battles or other competitive scenarios.

MAgent2 is a maintained fork of the original MAgent codebase. It contains some reference environments implemented using the PettingZoo API. These environments used to be included in PettingZoo itself, but have been moved here to exist independently. They are being regularly maintained and will receive bug fixes, support new versions of Python, etc. Development used to take place at github.com/Farama-Foundation/MAgent but was moved to github.com/Farama-Foundation/MAgent2 so that the distinction from the original MAgent library is clear to users.

Installation

Install using pip: pip install magent2. See docs for usage information.

Requirements

MAgent2 supports Linux and macOS and Python 3.8+.

References

@inproceedings{zheng2018magent,
  title={MAgent: A many-agent reinforcement learning platform for artificial collective intelligence},
  author={Zheng, Lianmin and Yang, Jiacheng and Cai, Han and Zhou, Ming and Zhang, Weinan and Wang, Jun and Yu, Yong},
  booktitle={Thirty-Second AAAI Conference on Artificial Intelligence},
  year={2018}
}

If you wish to cite this repo with it's modifications specifically, please cite:

@misc{magent2020,
  author = {Terry, Jordan K and Black, Benjamin and Jayakumar, Mario},
  title = {MAgent},
  year = {2020},
  publisher = {GitHub},
  note = {GitHub repository},
  howpublished = {\url{https://github.com/Farama-Foundation/MAgent}}
}

Project Maintainers

  • Project Manager: Travis Virgil - travis@farama.org
  • Maintenance for this project is also contributed by the broader Farama team: farama.org/team.

Metadata

Release files for magent2 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magent2 0.3.4
File Size Uploaded
magent2-0.3.4.tar.gz 4.2 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for magent2 0.3.4
File
magent2-0.3.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
magent2-0.3.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
magent2-0.3.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details
magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
magent2-0.3.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details
magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
magent2-0.3.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details
magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details

Total release size: 14.3 MB

Release files / magent2-0.3.4.tar.gz

Download URL magent2-0.3.4.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
5dd4d6e9ac354637cfd75ecb88d6c4683bd91b102bfc5accd760469478e56baf
BLAKE2b-256 checksum
How to use checksums
04726e8702e0ae0708c07c327523576fe79312f789823bbd6a4f07f8cbc7ca9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp314-cp314-win_amd64.whl

Download URL magent2-0.3.4-cp314-cp314-win_amd64.whl
Size 167.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
6fc006642e6298911d2f3bc7624a2ef1074f5d76a6c3799f99be5180b0f9b6df
BLAKE2b-256 checksum
How to use checksums
5e9728eb18bdcd2f7bd89a257bc1ae15f6b59a20e55187bcf5ff7ee7f1accf1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
dd434f2b31398251c704c9a0b456a4a9d48756ad615a4fc314378b912014c25b
BLAKE2b-256 checksum
How to use checksums
5c33192ddba3f3923c5f1973951674fb60bc457524cf512a354e794379dd28f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl

Download URL magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl
Size 174.0 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f1b4942d6cd3414212f981ebc631cc3df369a5b965e728ed7e8c4a88bb7c52ff
BLAKE2b-256 checksum
How to use checksums
1d9b59ab3c51f60230fdc3b7f454454eb44c132ba4e554283123e81f9e08d632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp313-cp313-win_amd64.whl

Download URL magent2-0.3.4-cp313-cp313-win_amd64.whl
Size 163.4 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
4ee6bce14f1493a5a52b1e8fde79720071da7f7174064aad9afd1f00d8aa4413
BLAKE2b-256 checksum
How to use checksums
c506091269a7ab84a8b2695b9d32e3636e4b0f28293629393eff933edf7dd2d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cbc812273623dc8485661e99aed2b988fb2117e1fe6699098ca1787e64263da4
BLAKE2b-256 checksum
How to use checksums
a04eb9f394c1096be6c483d3d15b3a11cd590096177fdc8c2ed35935f8cbbaf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl
Size 174.0 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b3fc100e73a83f95c967faf8b03c2d0552b7ddf6a46f0faa9f59693d370ba86a
BLAKE2b-256 checksum
How to use checksums
7b895d3079fc8b03f5b3d029ed93e54af534ce57dc595c39e2fd50c488ec94bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp312-cp312-win_amd64.whl

Download URL magent2-0.3.4-cp312-cp312-win_amd64.whl
Size 163.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5756a5a3d00c35133b01d5764f390316da950cc285adb4de798407b5e47a84a8
BLAKE2b-256 checksum
How to use checksums
9546ef237bba2d842076a95f964dc23d25b5baa3e398b975af9302b0e5d7aaa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5ec103dbecab51ee3a75a08f1f1cb8d9ef7cfeec94044df842ea105b08b5e41a
BLAKE2b-256 checksum
How to use checksums
b40ecec6bb352a2c8ab9c05cbae6e9959ca93f49eab7bee7c531a4971a34f40b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
Size 174.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d45d7c6ab8beca2fe646bf151dca0f36f3f3e46b50a1069213217fd1d443f44c
BLAKE2b-256 checksum
How to use checksums
a4f7f87e7aed8095939714073e82450e93b691680ee7388471a142a68e82cadd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp311-cp311-win_amd64.whl

Download URL magent2-0.3.4-cp311-cp311-win_amd64.whl
Size 163.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c695f19a0bcc9b1efb54fb85ba0c2653f8008908f9ef686726709f00d0479b0d
BLAKE2b-256 checksum
How to use checksums
b37cd197e5e905b06f2b01e583b7e6334a200dd048ca26c79c08d84ce2b7a3f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
71dfe614987a2d36553bc1be39d74f2b97acd3f9aba41456fe87c60db39073af
BLAKE2b-256 checksum
How to use checksums
b7eb9ee29947c9b6ada963a1249308a3aa61d3c163136400b59a4988541d8a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
Size 174.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e6ede511ec5e6c622ff3dd23d0836e0e126d1f76916789b5cb785fd766ebe43a
BLAKE2b-256 checksum
How to use checksums
0f23761fc9ce8189e96205b9accd7e0c60457aa138ef0026889fc18add07e172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp310-cp310-win_amd64.whl

Download URL magent2-0.3.4-cp310-cp310-win_amd64.whl
Size 163.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d0f2ef277bddca1274dfa958dabed3afa6372013dd5ffbcb27775f18417a15b6
BLAKE2b-256 checksum
How to use checksums
0546042f284e825726843fbf338566cc1344bbe417ae72c5854043bdae0a3792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c3ced67e34f968b5e1554285f4d967a4018fecd7f4cf403aa24b42363bf9f598
BLAKE2b-256 checksum
How to use checksums
a50764a320ba8e8933f4b6913b516891af8c859a550ddd8ae6e6a185edfdd11c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release files / magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl
Size 174.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
da924056cc39bc2bdee19b814d08dfad829961d9d6aeb09b161bfac7e30b3c17
BLAKE2b-256 checksum
How to use checksums
26007524a8afd0cbf1d3ab699daa205fab59b9b8f435dc852f0a40df1761c552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.4 This release

16 release files

0.3.3

9 release files

0.3.2

9 release files

0.3.1

9 release files

0.3.0

9 release files

0.2.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page