mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-22 05:38:33 -05:00
a3ca8159751827515f07fa19f89fe8198af4be18
GOG Galaxy - Community Integration - Python API
This document is still work in progress.
Basic Usage
Basic implementation:
import asyncio
from galaxy.api.plugin import Plugin
class PluginExample(Plugin):
# implement methods
async def authenticate(self, stored_credentials=None):
pass
# run plugin event loop
if __name__ == "__main__":
asyncio.run(PluginExample().run())
Use pyinstaller to create plugin executable.
Development
Install required packages:
pip install -r requirements.txt
Run tests:
pytest
Methods Documentation
TODO
Changelog
0.16
- Do not log sensitive data.
- Return
LocalGameStateas int (possible combination of flags).
0.15
shutdown()is called on socket disconnection.
0.14
- Added required version parameter to Plugin constructor.
Languages
Python
100%