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.10.0.tar.gz (30.5 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.10.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sr_comp_http-1.10.0.tar.gz
  • Upload date:
  • Size: 30.5 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.10.0.tar.gz
Algorithm Hash digest
SHA256 6f63e008bf615b530ae577642654457eaed581c8c8d380a9236614c681625c10
MD5 763d840effe63c3c98cdef585ce47a98
BLAKE2b-256 c5e9106b5cebd8f4233710104a2e23db3933f97d88ae6eeee34bff43e6ddcbf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sr_comp_http-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 27.2 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac0f944876c0a75e5fa696601c5feeaa4382ae5cb4182b2492c136ab99c7ab79
MD5 6877df83c257480c3f00f234c2381835
BLAKE2b-256 8d7c47bf00aefacfc1cfd9ca4373cd2e356a1763989e0cecd6e000e1e414166d

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