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.
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 theopengl
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for libretro.py-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51add76f754fe4d31a3652ffa4b3fda7f335ce1d3955ecb9eee792737464a16d |
|
MD5 | 998cfb06bf53085f8aab0a7b4e378473 |
|
BLAKE2b-256 | efbaf677995b3d9b0298634113a6ffbe8182076dd71b3ee30308f71d66b699f2 |