aforren1 / pygamemode

A Python wrapper for the GameMode client API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Python wrapper for the GameMode client API.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C 91.9%Language:Python 8.1%