Coder Social home page Coder Social logo

gametuner / query-engine Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 106 KB

GameTuner Query Engine is responsible for executing the queries that are built from API requests.

License: Apache License 2.0

Dockerfile 0.08% Python 99.92%
gaming-analytics semantic-layer guery-engine gaming big-data-analytics data analytics gametuner python

query-engine's Introduction

GameTuner Query Engine

Overview

Query engine is a service that is responsible for executing the queries that are built from API requests. It is a REST API service that is built using FastAPI. It implements custom semantic layer for BigQuery data. It is written in Python and uses FastAPI as a web framework.

Installation

Dependencies

GameTuner Query Engine service is dependent on GameTuner Metadata service. MetaData service is used for fetching configurations of applications for query engine. If MetaData service is not available, application will not start.

Run locally

Pre-requisites

In order to run this service you need to have the following installed:

  • Python 3.10+

Configuration

The service is configured using environment variables. The following environment variables are used:

  • GCP_PROJECT_ID - GCP project id
  • JSON_LOGS - If set to 1, logging is enabled
  • METADATA_IP_ADDRESS - Metadata service IP address
  • METADATA_PORT - Metadata service port
  • UVICORN_PORT - Port on which the service will run

Examples of environment variables can be found in the .env file.

Run service

To run the service locally, you need to install the dependencies first. You can do that by running the following command:

pip install -r requirements.txt

After that you can run the service by running the following command:

uvicorn queryengine.main:app --reload

Running on GCP

For deploying the application on GCP, you should first build the application by running google cloud build gcloud builds submit --config=cloudbuild.yaml .. Script submits docker image to GCP artifact registry. Once the image is submitted, you should deploy the application on GCP. You can do that by running terraform script in GameTuner terraform project.

Usage

API

Service provides REST API for managing organisations, apps, events and event schemas. You can find the full API documentation on http://localhost:8001/docs

Licence

The GameTuner Query Engine is copyright 2022-2024 AlgebraAI.

GameTuner Query Engine is released under the Apache 2.0 License.

query-engine's People

Contributors

djordjealgebra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.