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

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.6.0.tar.gz (15.1 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.6.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sr.comp.http-1.6.0.tar.gz
  • Upload date:
  • Size: 15.1 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.6.0.tar.gz
Algorithm Hash digest
SHA256 6c58531a9c71df849dff5361cd85aa5cef9ec176f55982429042c1effa6df085
MD5 db03c905da550e2af594534ed4261520
BLAKE2b-256 d8059396250e6c87adbd0f65324f576c28c11e0df318d3b6553da979498a6fb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sr.comp.http-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce04300e170c27f1bd433f15d21c65fe966b1c40c5211f9ebc3d9cb1216a659
MD5 434351c6570a820175d9fb67cd27fced
BLAKE2b-256 8fd48b5e59a0f723df3b3a78c239f2498a2881ef292bc7a2017208b843af84f3

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