diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-18 18:38:08 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-18 18:38:08 +0100 |
| commit | a09d5dba095314f4cb76f5480f6328a19b2668e8 (patch) | |
| tree | 6c1d63be4bc7ca0a163f7494552d897a85cebf22 /README.md | |
| parent | d7e959b9546a7abca51e75266fe8f338210315e9 (diff) | |
| download | python-gamelocker-a09d5dba095314f4cb76f5480f6328a19b2668e8.tar.gz python-gamelocker-a09d5dba095314f4cb76f5480f6328a19b2668e8.zip | |
README -> README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f16b34 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +python-gamelocker +=== + +[Private mirror](https://git.schneefux.xyz/schneefux/python-gamelocker) [GitHub mirror](https://github.com/schneefux/python-gamelocker) + +Python 3 wrapper for the Gamelocker API. Currently supports [Vainglory](https://developers.vainglorygame.com). Install with PyPi: `pip install python-gamelocker`. + +[Private docs mirror](https://docs.schneefux.xyz/python-gamelocker) [GitHub docs mirror](https://schneefux.github.io/python-gamelocker) + +Example usage: +```python +>>> import gamelocker +>>> APIKEY = "aaa.bbb.ccc" +>>> api = gamelocker.Gamelocker(APIKEY).Vainglory() +>>> m = api.matches(limit=2, player="TheLegend27") +>>> m +[<gamelocker.datatypes.Match object at 0x7f2682314ac8>, <gamelocker.datatypes.Match object at 0x7f26823d3c50>] +>>> m.rosters[0].participants[0].player.name +"iiDruid" +>>> m.rosters[0].participants[0].stats.kills +10 +>>> m.rosters[0].stats.acesEarned +2 +``` |
