Skip to main content

A Python wrapper for the GameMode client API.

Project description

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.

Project details


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