Skip to main content

OpenContest Server

An OpenContest server written using Python's HTTPServer and SQLite, with no external dependencies other than the Python standard library, requests, and Firejail.

Installation

Docker

Run the Docker Hub image:

docker run -d -p 9534:9534 --name opencontest-server -v $PWD/contests:/usr/src/app/contests laduecs/opencontest-server:latest

Note: $PWD/contests is where the contests folder in the container is mapped to on the host and by default creates a new folder called contests in the current directory. It can be replaced with the full path to a different if desired.

AUR

Install the opencontest-server-git from the AUR:

paru -S opencontest-server-git

Start the server with systemctl start opencontest-server.

Pip

Install opencontest-server with pip:

pip install opencontest-server

Run the server with ocs.

Usage

You can place contests like the sample contest in a contests directory.

For debugging, you can run the server with the --verbose flag.

For production usage, you should put this server behind a reverse proxy like NGINX or Caddy because Python's HTTPServer does not implement any security features. You will also need to a domain name and a TLS certificate which you can easily obtain using Let's Encrypt.

Release files for opencontest-server 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencontest-server 2.8.0
File Size Uploaded
opencontest-server-2.8.0.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencontest-server 2.8.0
File Interpreter ABI Platform
opencontest_server-2.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.4 kB

Release files / opencontest-server-2.8.0.tar.gz

Download URL opencontest-server-2.8.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a9ebbebdf99a82557b25f63d9485a35c8e21ea807c7ead9fa33db562112a0221
BLAKE2b-256 checksum
How to use checksums
68e2fc58d67375ede7781aca2cf3e31590d7154e793c9227db6832745ea9de7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release files / opencontest_server-2.8.0-py3-none-any.whl

Download URL opencontest_server-2.8.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28aaef278d3e9c920828f912566c860658c707f5eac18c901e2e030d01c3f3a5
BLAKE2b-256 checksum
How to use checksums
9b4437bfdc191c1aa84e79173cea6afbc8c4b4a2fa4f09228efa557b005eb4bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release history Release notifications | RSS feed

This release

2.8.0 This release

2 release files

2.6.0

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page