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.11.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sr_comp_http-1.11.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file sr_comp_http-1.11.0.tar.gz.

File metadata

  • Download URL: sr_comp_http-1.11.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for sr_comp_http-1.11.0.tar.gz
Algorithm Hash digest
SHA256 3834767ebc3e0108cb9c9282d933e7a1b0ed24637022d722d1a3b0b9ee516b3d
MD5 792f4599de91c0f21a3bb44e2f42cc0d
BLAKE2b-256 4f35b9589c818b2d1db1f101631f8beb490059718f08f0711c962ea86861e149

See more details on using hashes here.

File details

Details for the file sr_comp_http-1.11.0-py3-none-any.whl.

File metadata

  • Download URL: sr_comp_http-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for sr_comp_http-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fbbcb5b1cb5037b528138f283af189e622cb75957d4c518d85d815c56c423cb
MD5 2c069cfcbf3f46c93962c04524b995ad
BLAKE2b-256 596e2d613b9e093ec36c75e60ea4c397007e00ecdcc40d68b2733824024a73c7

See more details on using hashes here.

Supported by

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