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

Uploaded Source

Built Distribution

sr.comp.http-1.4.3-py2.py3-none-any.whl (35.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: sr.comp.http-1.4.3.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for sr.comp.http-1.4.3.tar.gz
Algorithm Hash digest
SHA256 8c0b28db43aeb36ffd9ccdd54b44d4ad7627ad778281bfced69f3b0dfdb29277
MD5 378235f6cb7ea856c02817e783543957
BLAKE2b-256 6b14aafb6a1eeafec096399c679952b161dbc35a60832fb4800a47ac7374835e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: sr.comp.http-1.4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for sr.comp.http-1.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4062afb8663421aa076b6dd0cbe1d75aee36e1220eb555c85f0030c6042f352e
MD5 5d8c5e960966650473c292dea277d7ec
BLAKE2b-256 daa48921eede946c3e1768c0640879bda180e6ab01496923174754db38d36312

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