Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1 KB

README.md

File metadata and controls

24 lines (16 loc) · 1 KB

Latest PyPI Release Build

A Python wrapper for the GameMode client API (https://github.com/FeralInteractive/gamemode).

To use this effectively, you'll need to install GameMode on your system. See either your system's package manager or the build instructions here.

Example usage:

import gamemode as gm

if gm.request_start() != 0:
    msg = gm.error_string()
    raise ValueError('Failed to request gamemode start: {}...'.format(msg))

# ...do things here...

if gm.request_end() != 0:
    msg = gm.error_string()
    raise ValueError('Failed to request gamemode end: {}...'.format(msg))

See test.py for all available calls.