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

Uploaded Source

Built Distribution

sr.comp.http-1.9.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sr.comp.http-1.9.0.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for sr.comp.http-1.9.0.tar.gz
Algorithm Hash digest
SHA256 b1ecf299bcaff5edaa55e0280e41a2ea4addc95439f423abbb8a25cad7792d39
MD5 3c53110fab2ad95adba45d2ea99cca73
BLAKE2b-256 8d8ea2585fc1ac1304e37b7c7cc574caeb995bdca4c6e1126e37112b3b27bbdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sr.comp.http-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e2dd675e824ce1fc774a7b53cfd5713cd16756f8464dcdc9682b6c53e20fb7
MD5 609616cffa948d6d568fe60c608be8be
BLAKE2b-256 54a806da1ecb0b048aceb87eaa35c5e1246bc19c1e3d9f3548614c73dffd7fbe

See more details on using hashes here.

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