Skip to main content

simple RAWG.io python api wrapper

Project description

rawgpy - RAWG python api wrapper

this is a small wrapper fpr the https://RAWG.io (game database) API

usage: initialize API:

rawg = RAWG("<user-agent-here>") please supply a User-Agent that describes your project

search for a game:

results = rawg.search("<game name here>") searches for the game, and returns a list of (5) results

if you want to limit the number of results, you can chage that by doing:

results = rawg.search("<game name here>", num_results=2)

the results are GameResult objects, whihc contain all attribute the API supplies

you can request more info for a game with

game = results[0] game.populate()

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

rawgpy-0.5.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

rawgpy-0.5-py3-none-any.whl (17.5 kB view hashes)

Uploaded Python 3

Supported by

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