SkillAgentSearch skills...

FlaskPyrezAPI

An open-source API for custom commands (Twitch), written in Python and deployed on Heroku.

Install / Use

/learn @luissilva1044894/FlaskPyrezAPI

README

<div align="center"> <a href="https://github.com/luissilva1044894/FlaskPyrezAPI" title="FlaskPyrezAPI - Github repository" alt="FlaskPyrezAPI · Github repository"><img src="./static/img/pyrez.png" height="96" width="96"></a>

FlaskPyrezAPI

License Runtime Version Discord Server

Built with: Python Pyrez Flask Bootstrap 4 Font Awesome

</div>

FlaskPyrezAPI is an endpoint for custom commands (Twitch), that provides data about players, matches and others stats of the game Paladins. It uses Pyrez, my Python wrapper for Hi-Rez Studios API.

Demo Website

Key Features

  • English, Polish, Portuguese and Spanish language support.

Requirements

  • Access to Hi-Rez Studios API.

Support

For support using Pyrez, please join the official support server on Discord.

Installation

Locally

  1. Clone this repository: git clone https://github.com/luissilva1044894/FlaskPyrezAPI.git
  2. cd into it: cd FlaskPyrezAPI
  3. Create a virtualenv: virtualenv -p python venv
  4. Activate it.
  5. Install Python Dependencies: pip install --upgrade pip setuptools wheel | pip install -r requirements.txt
  6. Edit .env and replace the PYREZ_AUTH_ID and PYREZ_DEV_ID with the authId and devId that you receive from Hi-Rez Studios.
  7. Run: python manage.py db migrate
  8. Run server: python main.py runserver
  9. Go to your browser and point it towards http://127.0.0.1:5000

Deploy (Heroku) Deploy

  1. Go to Heroku and create a new app (eg: your-app-name)
  2. Install Heroku CLI
  3. heroku login
  4. git init
  5. heroku git:remote -a your-app-name
  6. Download this repo and copy all files into your-app-name folder
  7. Edit .env and replace the PYREZ_AUTH_ID and PYREZ_DEV_ID with the authId and devId that you receive from Hi-Rez Studios.
  8. heroku config:push
  9. git add .
  10. git commit -m "Going to Heroku"
  11. git push heroku master
  12. heroku run python manage.py db migrate
  13. heroku open and a window will open with your app online

Thanks

License 📝

This is an open source Open Source project provided under the MIT License, which you can view in LICENSE file.

Raw data provided by Hi-Rez Studios API and is thus their property. © 2019 Hi-Rez Studios, Inc. All rights reserved.

View on GitHub
GitHub Stars9
CategoryOperations
Updated1y ago
Forks7

Languages

Python

Security Score

75/100

Audited on Aug 12, 2024

No findings