qeaml's wrapper for GameBanana's API
Project description
gbapi
qeaml's wrapper for GameBanana's API
About
gbapi
is a straight-to-the-point, asynchronous Python API wrapper for
GameBanana's API. Please do note that this is my first
proper API, so go easy on me :) If you want to get in contact with me through
GB, click here to go to my profile, and feel free to PM me about anything.
Requirements
- Python 3.6+
aiohttp
Usage
After you've installed the library:
import asyncio
import gbapi
async def main():
gb = gbapi.Client()
m = await gb.get_map(12345)
print(m.game.name) #prints the name of the game the map is for
print(m.author.name) #prints the name of the submitter
await gb.close() #remember to always close() your client !
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gbapi-0.1.0b0.tar.gz
(8.6 kB
view hashes)
Built Distribution
gbapi-0.1.0b0-py3-none-any.whl
(17.2 kB
view hashes)