Skip to main content

RAWG.io python api wrapper

Project description

RAWGpy quickstart

The RAWGpy RAWG.io API wrapper uses the rawgpy.rawg.RAWG as a main class that the users accesses.

You can use the RAWGpy wrapper with or without authenticating.

import rawgpy

rawg = rawgpy.RAWG("User-Agent, this should identify your app")
results = rawg.search("Warframe")  # defaults to returning the top 5 results
game = results[0]
game.populate()  # get additional info for the game

print(game.name)

print(game.description)

for store in game.stores:
    print(store.url)

rawg.login("someemail@example.com", "somepassword")

me = rawg.current_user()

print(me.name) # print my name, equivalent to print(self.username)

me.populate() # gets additional info for the user

for game in me.playing:
    print(game.name) # prints all the games i'm currently playing

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-1.0.3.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

rawgpy-1.0.3-py3-none-any.whl (26.0 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