Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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())

Release files for gbapi 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gbapi 0.2.0
File Size Uploaded
gbapi-0.2.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gbapi 0.2.0
File Interpreter ABI Platform
gbapi-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 kB

Release files / gbapi-0.2.0.tar.gz

Download URL gbapi-0.2.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26526ccb5e64c5d405096ce9254a64391a0188ccdf4fab52683f85cb14273f75
BLAKE2b-256 checksum
How to use checksums
8720e1a1b608d423414ee6c9f4af832f8c99e59d35b46560a082f6b756de901b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gbapi-0.2.0-py3-none-any.whl

Download URL gbapi-0.2.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0db78a4bdfd38ac90878bfd15d14e8144bede1a632c90aa5fbbabaabfe084c4
BLAKE2b-256 checksum
How to use checksums
24302ec2670e84d5e5dcd09996ecc338eb8fc180ee6599fdc4f789c885c7f5e4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page