Skip to main content

A libretro frontend for Python intended for testing cores.

Project description

libretro.py

A Python binding for libretro intended for testing cores, but suitable for any purpose. Ease of use, flexibility, and complete API support are top priorities.

Workflow Status PyPi License

Supported Environments

libretro.py has the following requirements:

  • Python 3.11 or newer. May not work on alternative Python implementations like PyPy.
  • Supported on Windows, macOS, and Linux. May work on other platforms, but no promises.

Nothing else is required for most functionality, but some extra features have additional dependencies or constraints.

If contributing then just is optional but recommended, as it will simplify most development tasks. For details, run just (no arguments) in the project root.

Installing

libretro.py supports Python 3.11 or newer. Nothing else is required for most functionality, but some extra features have additional dependencies.

You can install libretro.py with pip like so:

# Install the base libretro.py
pip install libretro.py

Using a virtual environment is recommended:

# Create a virtual environment
python -m venv ./venv

# Activate the virtual environment (in Bash)
source ./venv/bin/activate

# Activate the virtual environment (in PowerShell)
./venv/Scripts/activate.ps1 

Or if you have just installed, let it figure out the details for you:

just venv

Extras

To install additional features, add one or more of the following extras to the install command:

  • cli: Test scripts that don't rely on the nuances of any particular core. Use these to simplify your own core's test process.
  • dev: Assorted tools used to help develop libretro.py. Required if contributing to libretro.py.
  • opengl: Support for the built-in OpenGL video driver. Required if testing a core's OpenGL support.
  • opengl-window: Same as the opengl extra, but with support for opening an actual window. Can help simplify some debugging tasks, e.g. RenderDoc usage.

For example, if you want to submit an improvement to the OpenGL video driver, you would install libretro.py like so:

pip install libretro.py[opengl,dev]

And if you just want to test your libretro core's OpenGL support:

pip install libretro.py[opengl]

Some of these extras have additional dependencies.

OpenGL

If using OpenGL support on Linux, you may need to install the libopengl0 package.

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

libretro_py-0.5.0.tar.gz (114.3 kB view details)

Uploaded Source

Built Distribution

libretro.py-0.5.0-py3-none-any.whl (153.6 kB view details)

Uploaded Python 3

File details

Details for the file libretro_py-0.5.0.tar.gz.

File metadata

  • Download URL: libretro_py-0.5.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for libretro_py-0.5.0.tar.gz
Algorithm Hash digest
SHA256 33bfc279ef8a53bfe287ee1ed462e1d8c96acf1f421cb444be08e1a9f8e43c52
MD5 aa0f218d79dc5d825c62abbc9a0eb494
BLAKE2b-256 1f21c33bbd9f4b88780d5f8dc9ebf808234079f42312e5ee32f4e3882b92cdc4

See more details on using hashes here.

File details

Details for the file libretro.py-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: libretro.py-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 153.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for libretro.py-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7037fedc5f70a0721995fdde298d057dc60d6bcc1599ebf9edfa7038b7953f88
MD5 2964560a9ea292ded16b43a73c987d8b
BLAKE2b-256 2dbc23bc4e3c293bf711d910e2ea65671001a2ba8ea7f1cb3132933617d2b2ca

See more details on using hashes here.

Supported by

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