Skip to main content

HTTP API for Student Robotics Competition Software

Project description

Build Status Docs Status

A HTTP interface around SRComp, the fifth round of Student Robotics competition software.

This repository provides a JSON API to accessing information about the state of the competition. It is a lightweight Flask application wrapping the SRComp python APIs to the competition state.

Usage

Install:

pip install sr.comp.http

Configuration

In deployment you should configure the app by setting the COMPSTATE key of the app’s config to the absolute path of the compstate which the server intends to serve.

from sr.comp.http import app
app.config['COMPSTATE'] = '/path/to/compstate'

Development

Clone:

For tests to work, you will need to clone the tests/dummy submodule too:

git submodule update --init

Install:

pip install -e .

Run: ./run $COMPSTATE.

Test: ./run-tests

Developers may wish to use the SRComp Dev repo to setup a dev instance.

State Caching

Since loading a given state repo takes a non-trivial amount of time, this is cached within the Flask application. Updates to the state repo are not tracked directly, and must be signalled by running the ./update script provided.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sr.comp.http-1.8.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

sr.comp.http-1.8.0-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

Details for the file sr.comp.http-1.8.0.tar.gz.

File metadata

  • Download URL: sr.comp.http-1.8.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for sr.comp.http-1.8.0.tar.gz
Algorithm Hash digest
SHA256 1823fc76e1dcd49798ab7e9ef4471568a20315db1b6868f5da82404256fca706
MD5 9f9cb47d3b25bd9bea6c59d37743c626
BLAKE2b-256 7c133300c58cf8b766b0bc55edd70230be75248341bff49457645960b3b5eb55

See more details on using hashes here.

Provenance

File details

Details for the file sr.comp.http-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: sr.comp.http-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for sr.comp.http-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a3332ace46cecc1d33455125e16d3375555dc3316f66a03efd22124d70370a
MD5 9c6997597176ea3a12faf819e1ddb253
BLAKE2b-256 f6e0ed5cd7188a71fcbb88373e3220f01be98c986186d00dae66499bc955c94e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page