This project is a Flask-based API for managing telemetry data of game mods. It allows you to create mods, receive telemetry data, and retrieve statistics about mod and game version usage.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file and set thePASSWORD
environment variable:echo "PASSWORD=your_password" > .env
-
Run the application:
python app.py
The API provides the following endpoints:
- URL:
/telemetry/health
- Method:
GET
- URL:
/telemetry/mods
- Method:
GET
- URL:
/telemetry/mods
- Method:
POST
- Body:
{ "password": "your_password", "mod_id": "mod123", "mod_name": "Example Mod" }
- Response:
{ "message": "Mod created successfully" }
- URL:
/telemetry/data
- Method:
POST
- Body:
{ "mod_id": "mod123", "game_version": "1.0", "mod_version": "1.0", "loader": "Forge" }
- Response:
{ "message": "Data saved successfully" }
- URL:
/telemetry/export/csv
- Method:
GET
- Query Parameters:
password
- Response: CSV file download
This project is licensed under the GPL-3.0 License. See the LICENSE file for more information.