Skip to main content

Multi-Agent Reinforcement Learning environments with very large numbers of agents.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magent2-0.3.4.tar.gz (4.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

magent2-0.3.4-cp314-cp314-win_amd64.whl (167.4 kB view details)

Uploaded CPython 3.14Windows x86-64

magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl (174.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

magent2-0.3.4-cp313-cp313-win_amd64.whl (163.4 kB view details)

Uploaded CPython 3.13Windows x86-64

magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl (174.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

magent2-0.3.4-cp312-cp312-win_amd64.whl (163.4 kB view details)

Uploaded CPython 3.12Windows x86-64

magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl (174.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

magent2-0.3.4-cp311-cp311-win_amd64.whl (163.4 kB view details)

Uploaded CPython 3.11Windows x86-64

magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl (174.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

magent2-0.3.4-cp310-cp310-win_amd64.whl (163.4 kB view details)

Uploaded CPython 3.10Windows x86-64

magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl (174.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file magent2-0.3.4.tar.gz.

File metadata

  • Download URL: magent2-0.3.4.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magent2-0.3.4.tar.gz
Algorithm Hash digest
SHA256 5dd4d6e9ac354637cfd75ecb88d6c4683bd91b102bfc5accd760469478e56baf
MD5 5648455dde2657dd968038618bcfdcaf
BLAKE2b-256 04726e8702e0ae0708c07c327523576fe79312f789823bbd6a4f07f8cbc7ca9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4.tar.gz:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: magent2-0.3.4-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 167.4 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magent2-0.3.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6fc006642e6298911d2f3bc7624a2ef1074f5d76a6c3799f99be5180b0f9b6df
MD5 e82a239be0e2cd81d66c7cf081f2d012
BLAKE2b-256 5e9728eb18bdcd2f7bd89a257bc1ae15f6b59a20e55187bcf5ff7ee7f1accf1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp314-cp314-win_amd64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd434f2b31398251c704c9a0b456a4a9d48756ad615a4fc314378b912014c25b
MD5 218c8e38ee9755558b3c3a43dfab6b68
BLAKE2b-256 5c33192ddba3f3923c5f1973951674fb60bc457524cf512a354e794379dd28f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1b4942d6cd3414212f981ebc631cc3df369a5b965e728ed7e8c4a88bb7c52ff
MD5 f06bb3908e427f65881f35c7a143a7d0
BLAKE2b-256 1d9b59ab3c51f60230fdc3b7f454454eb44c132ba4e554283123e81f9e08d632

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: magent2-0.3.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 163.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magent2-0.3.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4ee6bce14f1493a5a52b1e8fde79720071da7f7174064aad9afd1f00d8aa4413
MD5 1b0365e0fffb8e6d27b320c2c65a6ddc
BLAKE2b-256 c506091269a7ab84a8b2695b9d32e3636e4b0f28293629393eff933edf7dd2d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp313-cp313-win_amd64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbc812273623dc8485661e99aed2b988fb2117e1fe6699098ca1787e64263da4
MD5 0d48e896d14ae0b409b759a2ddd4c0f3
BLAKE2b-256 a04eb9f394c1096be6c483d3d15b3a11cd590096177fdc8c2ed35935f8cbbaf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3fc100e73a83f95c967faf8b03c2d0552b7ddf6a46f0faa9f59693d370ba86a
MD5 3a414ea25abc20d51a5005673d8e8b93
BLAKE2b-256 7b895d3079fc8b03f5b3d029ed93e54af534ce57dc595c39e2fd50c488ec94bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: magent2-0.3.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 163.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magent2-0.3.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5756a5a3d00c35133b01d5764f390316da950cc285adb4de798407b5e47a84a8
MD5 dacae27a30240b846c5bf0e66f4f70e9
BLAKE2b-256 9546ef237bba2d842076a95f964dc23d25b5baa3e398b975af9302b0e5d7aaa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp312-cp312-win_amd64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ec103dbecab51ee3a75a08f1f1cb8d9ef7cfeec94044df842ea105b08b5e41a
MD5 2d033eebc7b98c8e1b5d1d05e6101dc0
BLAKE2b-256 b40ecec6bb352a2c8ab9c05cbae6e9959ca93f49eab7bee7c531a4971a34f40b

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d45d7c6ab8beca2fe646bf151dca0f36f3f3e46b50a1069213217fd1d443f44c
MD5 b65831d052128ce776aa7deb08832aeb
BLAKE2b-256 a4f7f87e7aed8095939714073e82450e93b691680ee7388471a142a68e82cadd

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: magent2-0.3.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 163.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magent2-0.3.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c695f19a0bcc9b1efb54fb85ba0c2653f8008908f9ef686726709f00d0479b0d
MD5 96f6e37282398f3a2ab7d04c8d2201d6
BLAKE2b-256 b37cd197e5e905b06f2b01e583b7e6334a200dd048ca26c79c08d84ce2b7a3f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp311-cp311-win_amd64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71dfe614987a2d36553bc1be39d74f2b97acd3f9aba41456fe87c60db39073af
MD5 0251f648cd756d46c9d08be54b18c105
BLAKE2b-256 b7eb9ee29947c9b6ada963a1249308a3aa61d3c163136400b59a4988541d8a9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6ede511ec5e6c622ff3dd23d0836e0e126d1f76916789b5cb785fd766ebe43a
MD5 45e17eb420e56bc419c0e6f862915da6
BLAKE2b-256 0f23761fc9ce8189e96205b9accd7e0c60457aa138ef0026889fc18add07e172

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: magent2-0.3.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 163.4 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magent2-0.3.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0f2ef277bddca1274dfa958dabed3afa6372013dd5ffbcb27775f18417a15b6
MD5 024a000a13e944046ba5109310f3c585
BLAKE2b-256 0546042f284e825726843fbf338566cc1344bbe417ae72c5854043bdae0a3792

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp310-cp310-win_amd64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c3ced67e34f968b5e1554285f4d967a4018fecd7f4cf403aa24b42363bf9f598
MD5 665d49fb48c07fb707a8b333a6ffbbe6
BLAKE2b-256 a50764a320ba8e8933f4b6913b516891af8c859a550ddd8ae6e6a185edfdd11c

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da924056cc39bc2bdee19b814d08dfad829961d9d6aeb09b161bfac7e30b3c17
MD5 8ab620d6bbd1caa9a27c34fe4658db10
BLAKE2b-256 26007524a8afd0cbf1d3ab699daa205fab59b9b8f435dc852f0a40df1761c552

See more details on using hashes here.

Provenance

The following attestation bundles were made for magent2-0.3.4-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-test-publish.yml on Farama-Foundation/MAgent2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page