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**.
**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.7.5.tar.gz
(15.0 kB
view details)
File details
Details for the file pyrez-0.7.5.tar.gz.
File metadata
- Download URL: pyrez-0.7.5.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5152c67afa7ae440321c5843cf92e33d4c052668fa534b7edbd375c1701bbbf3
|
|
| MD5 |
8b934ada0497a543a59f4c8133976333
|
|
| BLAKE2b-256 |
967c32c0d0626cf017843de0f982cabccf35881914d6382e2e7e05bd28f75ba1
|