Skip to main content

A Python-based wrapper for Hi-Rez API

Project description

# PyRez

**PyRez** is Python-based wrapper for [Hi-Rez](http://www.hirezstudios.com/) API that supports *[Smite](https://www.smitegame.com/)* and *[Paladins](https://www.paladins.com/)*.

## Requirements
* [Python](http://python.org) 3.5 (or higher)
* The following libraries are required: `requests` and `requests-aeaweb`
- [Access](https://fs12.formsite.com/HiRez/form48/secure_index.html) to Hi-Rez Studios' API

Detailed documentation is in the "docs" directory.

## Installation
The easiest way to install **Py-rez** is using `pip`, Python's package manager:

```
pip install -U pyrez
```

The required dependencies will be installed automatically. After that, you can use the library using `import pyrez`.

## Example

```py
from pyrez import API
from API import PaladinsAPI

client = PaladinsAPI ("YOUR_DEV_ID", "YOUR_AUTH_KEY")
godsRanks = client.getGodRanks ("FeyRazzle")

if godsRanks is not None:
for godRank in godsRanks:
print(godRank.getWinratio ())
```

This example will print the winrate with every gods of player **FeyRazzle**.

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

pyrez-0.5.1.tar.gz (14.2 kB view hashes)

Uploaded Source

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