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

Uploaded Source

Built Distribution

sr.comp.http-1.4.0-py2.py3-none-any.whl (35.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: sr.comp.http-1.4.0.tar.gz
  • Upload date:
  • Size: 15.0 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.0.tar.gz
Algorithm Hash digest
SHA256 99ad900d9e859afef198dcf76f52acbff39ce2fa91af93f788a3fb05cd39cc01
MD5 fa399988040817530e412669eb124752
BLAKE2b-256 a5a1103601ebed5290ad2ef2be341e1c3776d595ff92503397a6672cc7ac011a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: sr.comp.http-1.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.0 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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d1de7d2fe7d05e8104f6cb69e0f6faa1dfa6d4aaa8ac6fa34deaff0bc2a8e183
MD5 3b388d0f79f7bb4b6645437fe0f4f54a
BLAKE2b-256 a93f067074bc747aac076dc1febfde1ecfc04f0521683f833070112d45d9b55a

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