Skip to content

aforren1/pygamemode

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published