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
Release files for rawgpy 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rawgpy-1.0.3.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rawgpy-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / rawgpy-1.0.3.tar.gz
| Download URL | rawgpy-1.0.3.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c6a7f7cfdcb769d9e5da40da648e54fcb7e9b4bb6fcfed9e1346320337bf944
|
|
BLAKE2b-256 checksum How to use checksums |
854718fc6612eab48c93abead20901b7629ee42a0e128ecf7bc02c68c35f273e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.6
|
Release files / rawgpy-1.0.3-py3-none-any.whl
| Download URL | rawgpy-1.0.3-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e04f0025d4a2602498733dd4fc66605b2089567660cfcc97e953ef9e69e1aeb4
|
|
BLAKE2b-256 checksum How to use checksums |
829b9dfedf1c928d24945702c06ebb216406a6daa1b2abdd977425473e4de361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.6
|