Files
2023-05-12 20:53:44 +02:00
..
2023-04-21 17:56:35 +02:00
2023-04-23 11:48:11 +02:00
2023-05-12 20:53:44 +02:00
2023-05-12 20:53:44 +02:00

FairHopper Python SDK

Requirements:

  • Python 3.7+

Setting up environment

Project uses Poetry, ultimate dependency management software for Python.

Install Poetry:

pip install poetry

Install virtual environment:

poetry install

Simple: Using virtualenv

Create virtual environment:

virtualenv .env

Activate virtual environment:

source .env/bin/activate

Install required dependencies:

pip install -r requirements.txt

Running demo

Check demo.py for usage example.

Edit demo.py and configure FairHopper Game host settings:

FAIRHOPPER_HOST = "http://127.0.0.1:8010"

Activate environment and run example:

Poetry

poetry shell
python demo.py

Virtualenv

source .env/bin/activate
python demo.py