Python Gamelocker API library

schneefux 49f286a644 add example by @iAm-Kashif (fixes #3) 6 months ago
docs 2c15522bc2 generate sphinx docs 8 months ago
examples 49f286a644 add example by @iAm-Kashif (fixes #3) 6 months ago
gamelocker 465295b223 support Telemetry via assets 6 months ago
tests 465295b223 support Telemetry via assets 6 months ago
.gitignore 2c96397c95 first commit - first API draft 8 months ago
LICENSE 2c96397c95 first commit - first API draft 8 months ago
README.md 174019005c update wrapper and tests for latest API changes 6 months ago
release.md 3fb50f12d1 add notes on package updates 7 months ago
setup.cfg 2c96397c95 first commit - first API draft 8 months ago
setup.py 2394e44ab0 bump pip version 6 months ago

README.md

python-gamelocker

Private mirror GitHub mirror

Python 3 wrapper for the Gamelocker API. Currently supports Vainglory. Install with PyPi: pip install python-gamelocker.

Private docs mirror

Example usage:

>>> import gamelocker
>>> APIKEY = "aaa.bbb.ccc"
>>> api = gamelocker.Gamelocker(APIKEY).Vainglory()
>>> m = api.matches({"page[limit]": 2, "filter[playerNames]": "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

More examples

Running the tests:

GAMELOCKER_APIKEY=your.api.key PYTHONPATH=. python -m pytest tests