simple RAWG.io python api wrapper
Project description
rawgpy - RAWG python api wrapper
this is a small wrapper for 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
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
rawgpy-0.1.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
rawgpy-0.1.1-py3-none-any.whl
(17.6 kB
view hashes)