From 0b9b2dc8d3540ef04436fe9cf499a32842aa7033 Mon Sep 17 00:00:00 2001 From: Romuald Juchnowicz-Bierbasz Date: Mon, 11 Feb 2019 15:09:23 +0100 Subject: [PATCH] SDK-2520: Add docs --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a8f0c6b..6c73bf9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,33 @@ -# galaxy-plugin-api +# Galaxy python plugin API +## Usage + +Implement plugin: + +```python +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](https://www.pyinstaller.org/) to create plugin executbale. + +## Development + +Install required packages: +```bash +pip install -r requirments.txt +``` + +Run tests: +```bash +pytest +``` \ No newline at end of file