Skip to main content

No project description provided

Project description

If you have any questions, or just want to chat, join us on Discord.

It is highly recommended to read the report to get a light introduction to Game Boy emulation. But do be aware, that the Python implementation has changed a lot. The report is relevant, eventhough you want to contribute to another emulator, or create your own.

If you've read the report and want more explicit details, have a look at the Pan Docs.

If you are looking to make a bot or AI, you can find all the external components in the PyBoy Documentation. There is also a short example on our Wiki page Scripts, AI and Bots as well as in the examples directory. If more features are needed, or if you find a bug, don't hesitate to make an issue here on GitHub, or write on our Discord channel.


Installation

The instructions are simple, if you already have a functioning Python environment on your machine.

  1. Install SDL2 through your package manager:

    • Ubuntu: sudo apt install libsdl2-dev
    • Fedora: sudo dnf install SDL2-devel
    • macOS: brew install sdl2
  2. Install PyBoy using pip install pyboy (add --user if your system asks)

Now you're ready! Either use PyBoy directly from the terminal $ pyboy file.rom or use it in your Python scripts:

from pyboy import PyBoy
pyboy = PyBoy('ROMs/gamerom.gb')
while not pyboy.tick():
    pass

If you need more details, or if you need to compile from source, check out the detailed installation instructions. We support: macOS, Raspberry Pi (Raspbian), Linux (Ubuntu), and Windows 10.

At the Wiki page, you will also find out how to interface with PyBoy from your own project: Wiki.

Contributors

Thanks to all the people, who have contributed to the project!

Original Developers

GitHub Collaborators

Student Projects

  • Rewind Time: Jacob Olsen - JacobO1
  • Link Cable: Jonas Flach-Jensen - thejomas

Contribute

Any contribution is appreciated. The currently known errors are registered in the Issues tab. Feel free to take a swing at any one of them.

For the more major features, there are the following that you can give a try. They are also described in more detail in the project list:

  • Color
  • Link Cable
  • (Experimental) AI - use the botsupport or game wrappers to train a neural network
  • (Experimental) Game Wrappers - make wrappers for popular games

If you want to implement something which is not on the list, feel free to do so anyway. If you want to merge it into our repo, then just send a pull request and we will have a look at it.

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

pyboy-1.1.1.tar.gz (5.9 MB view details)

Uploaded Source

Built Distributions

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

pyboy-1.1.1-cp38-cp38-manylinux2010_x86_64.whl (26.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

pyboy-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

pyboy-1.1.1-cp37-cp37m-win_amd64.whl (9.3 MB view details)

Uploaded CPython 3.7mWindows x86-64

pyboy-1.1.1-cp37-cp37m-win32.whl (8.7 MB view details)

Uploaded CPython 3.7mWindows x86

pyboy-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl (23.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

pyboy-1.1.1-cp37-cp37m-macosx_10_14_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

pyboy-1.1.1-cp36-cp36m-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

pyboy-1.1.1-cp36-cp36m-win32.whl (8.7 MB view details)

Uploaded CPython 3.6mWindows x86

pyboy-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl (23.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

pyboy-1.1.1-cp36-cp36m-macosx_10_14_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

File details

Details for the file pyboy-1.1.1.tar.gz.

File metadata

  • Download URL: pyboy-1.1.1.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

File hashes

Hashes for pyboy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5147ba8856ae433286b492bc3837e61561a8187488629cf36a35d37f34209263
MD5 550d6fa5a6df4310515bb06b7be7139a
BLAKE2b-256 18a5afede30ac599272e764c73eb92418c2fb706586dbff063432a4aeb62b85d

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 26.3 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pyboy-1.1.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2bbb3640f47dc082784e63e54d593fdfdc516f7c0f34c16ae49b441171199e97
MD5 1089382d06e574e991b661e0af469b2b
BLAKE2b-256 e2a1fbc652fac35b51ebd55990f38c94230397b4abd2b59cf903cd9f8e05bc68

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 9.7 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pyboy-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2dbda1d7b951bd06d49524448d4835476a4e46802113440a05834ced4ffae534
MD5 910b8f33be801a772d097dc7c1de1673
BLAKE2b-256 e505d3e03afbcb0c2f74bb3510183eae9a2bd0a2b2c6929aabfe986a9431ea91

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pyboy-1.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3153a080124bed0e25797b94525063e34701470517c0039b8ebec7995d3add1a
MD5 66a3399601537bcda80adf1f304cd969
BLAKE2b-256 aacbb4cc8d2e4eee114d6da24187b5fa129aca4e5b2a146cef8fc4b06a590e2e

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pyboy-1.1.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 07c64ce55270d1e76fd4a29194eaf1682fb9157db8e7ee712bd590c37ae4391f
MD5 7e9643f5456d857c9966499268945231
BLAKE2b-256 8a1ea08cb0a6681d783f5ce4ecfe2cf57b3ab79dbb91cde88ecf350f30043f20

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 23.9 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pyboy-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5b464b883a2f95cd4972b7900fd295232de48f044d3e522861664ce01e5d4294
MD5 d78859167366d89c7d31f03fad6aeaa8
BLAKE2b-256 60d2011b3033a7e0a073fee880bcb7e37f4de4fb939dec9f006889a078e7c068

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 9.7 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pyboy-1.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 cfb962fa1457b33305df8b068eb7f1af4bbe3e7d8e50e0dc1f3be9d4fe9ec9ed
MD5 b7e7cb6bebdba4bac2ddacc95df0cc76
BLAKE2b-256 50ef203596ec54919eb91683b326efb09f1a720767d6c069f479ca3068895ad8

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for pyboy-1.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 aaad47da009843080a16ca5c5e4cafc93fb25b7ede33553d1ae4d00818fd72d8
MD5 ee2b5635ce6829b072a054f998149468
BLAKE2b-256 80497cabbd24ab0329371f8ec48227cc710560808b718078dd6623c0bd0809bc

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for pyboy-1.1.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 bd054749a56d2cb21add8051bad70699c70baafdabec704ca4a920c497b52b96
MD5 850c67115e4e001a18c8e34e2f24f870
BLAKE2b-256 6f4bc187e07fb3bdf331bcac5543e8036f64b8f9ebc11573a80e6e82075e8b71

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 23.9 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

File hashes

Hashes for pyboy-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1fbb656ca0a3463eb5b3dfb0efac9ac9998b644e6d8b13325533650efbe76846
MD5 9059b435697c0bc4d8462f2f5b20ffde
BLAKE2b-256 d5b1ce6dae820a1cee276b53044af309ebc2417933bfe0a428471a32afdea087

See more details on using hashes here.

File details

Details for the file pyboy-1.1.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyboy-1.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

File hashes

Hashes for pyboy-1.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c40f2a219e7276aea9cc6d515543f540672e2c3267515810720953eb6c2373aa
MD5 57145560f24fe2c16e92d7872a6ac33b
BLAKE2b-256 edfc38ffd065bb4a8d3c9edcf0a2c518bb4da1040b028ee0456badc92e8d8406

See more details on using hashes here.

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