2019-03-12 16:10:23 +01:00
2019-03-12 15:53:42 +01:00
2019-02-20 16:44:53 +01:00
2019-02-11 12:02:02 +01:00
2019-02-11 12:02:02 +01:00
2019-03-12 16:10:23 +01:00

Galaxy python plugin API

Usage

Implement plugin:

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(MockPlugin().run())

Use pyinstaller to create plugin executbale.

Development

Install required packages:

pip install -r requirements.txt

Run tests:

pytest

Changelog

0.16

  • Do not log sensitive data.
  • Return LocalGameState as int (possible combination of flags).

0.15

  • shutdown() is called on socket disconnection.

0.14

  • Added required version parameter to Plugin constructor.
Description
No description provided
Readme MIT 466 KiB
Languages
Python 100%