A simple Flask app which displays a scoreboard for benchmark results.
Find a file
2017-04-19 16:03:14 +03:00
src Adding documentation to to_zero_count function 2017-04-19 16:03:14 +03:00
test Adding tests for utilities 2017-04-19 15:58:32 +03:00
.travis.yml Updating travis 2017-04-17 14:21:21 +03:00
LICENSE.txt Initial commit 2017-04-11 23:23:47 +03:00
README.md Updating readme 2017-04-19 01:31:14 +03:00
requirements.txt Adding MYSQL support 2017-04-17 02:18:18 +03:00
setup.py Updating version 2017-04-19 01:31:25 +03:00

scoreboard-benchmark

Travis CI

This is a simple web app used for an university projects.

You will need Python 2.6+ or Python 3.3+ to run this app. Flask doesn't support Python 3.2.

It should provide a simple score board display for some benchmarking data which is gathered from another application.

Installing

To install and run the application, you must do the following:

Rename the config.lock.py to config.py, so you can safely modify the config.py and still have config.lock.py as a template. and update the file to match your configuration settings.

Then run:

pip install -r requirements.txt
python setup.py install
nohup python application.py &

Running Tests

In the root directory, run the following command:

python -m unittest

Posting data

You can post data using curl. There are no restrictions on whoever can post data.

curl -H "Content-Type: application/json" -X POST -d '{"gpu":"GPU DUMMY TEXT","cpu":"CPU DUMMY TEXT","log":"DETAILED LOG","score": 1}' http://localhost:5000/result