Skip to main content

No project description provided

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.1.tar.gz (15.2 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.4.1-py2.py3-none-any.whl (35.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: sr.comp.http-1.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 411c8e4365a4f9e1f6b23aec58fa36555e47ec0808310dd1eed60aeb78665b3d
MD5 87a17af2bed09605a8aa6b4b1d842237
BLAKE2b-256 7e1429154bc6f82f9378bdeaa911f0f8f5a83f1d354e9ebd499f73d96d1beddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sr.comp.http-1.4.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 32483b9fbb9bedee37b2662856920754aaec54cf8541d79630f72ecf0d8b5fa0
MD5 bf8e74791f409ff9f53596114aeb8038
BLAKE2b-256 39c9062a1f83c139e350f3fed37d568ade6c8b0166126ce33d91a3c60e6266cb

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