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

Uploaded Source

Built Distribution

sr.comp.http-1.8.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sr.comp.http-1.8.1.tar.gz
Algorithm Hash digest
SHA256 0402f5ebd66b2800580921e9ccb1562760f1487a7a9e4d2530c31e79e4726308
MD5 3003f4dbb3bd9d812e5a8ad1d8bf831d
BLAKE2b-256 b67be2d626317d978962c78186361aa476a43565f713aff4b8e272cd0875f220

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sr.comp.http-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c528b1423d47545ba78ac7f920ea7980105666c45c9df480aa5aac6d8ee938d
MD5 42389cce3362665c07c2ed1f346fc35a
BLAKE2b-256 e3ba7d3c054c84c334f49b1e76476076f55871c691a42bf55cc19a59d1ca05cd

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