Metadata-Version: 2.1
Name: rawg
Version: 0.1
Summary: RAWG.io API Wrapper
Home-page: https://github.com/uburuntu/rawg
Author: uburuntu
Author-email: bekbulatov.ramzan@ya.ru
License: UNKNOWN
Download-URL: https://github.com/uburuntu/rawg/archive/master.zip
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Requires-Dist: pydantic

# RAWG.io API Wrapper

[![Python в©ѕ 3.6](https://img.shields.io/badge/Python-в©ѕ_3.6-blue.svg?longCache=true)]()
[![PyPI](https://img.shields.io/pypi/v/rawg.svg)](https://pypi.python.org/pypi/rawg)

## Simple example

```python
import asyncio

from rawg import AIORawg


async def main():
    r = AIORawg()

    keyword = 'metal gear'
    search = await r.search(keyword, page_size=3)

    print('Found:', search.count)
    for game in search.results:
        print('--', game.name)
        print('----', 'Rating:', game.rating)
        for genre in game.genres:
            print('----', genre.name)


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
```

Result:
```
Found: 1841
-- Metal Gear
---- Rating: 4.0
-- METAL GEAR RISING: REVENGEANCE
---- Rating: 4.13
---- Action
-- Metal Gear Solid
---- Rating: 4.22
---- Shooter
---- Adventure
---- Action
```


