Skip to main content

qeaml's wrapper for GameBanana's API

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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

Getting started

First, install the library with pip:

pip install gbapi

Then, simply import it and use the Client to communicate with GameBanana!

import gbapi
gb = gbapi.Client()
await gb.get_map(123)
await gb.get_skin(456)
await gb.(...)

Here's a basic example:

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


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.2.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gbapi-0.2.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file gbapi-0.2.0.tar.gz.

File metadata

  • Download URL: gbapi-0.2.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for gbapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 26526ccb5e64c5d405096ce9254a64391a0188ccdf4fab52683f85cb14273f75
MD5 03d5475d00bfa8f4bb7a0b55ce5d4e85
BLAKE2b-256 8720e1a1b608d423414ee6c9f4af832f8c99e59d35b46560a082f6b756de901b

See more details on using hashes here.

File details

Details for the file gbapi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gbapi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for gbapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0db78a4bdfd38ac90878bfd15d14e8144bede1a632c90aa5fbbabaabfe084c4
MD5 2d4858e7fb813830095375e8ae3e8a1c
BLAKE2b-256 24302ec2670e84d5e5dcd09996ecc338eb8fc180ee6599fdc4f789c885c7f5e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page