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/contestsis where the contests folder in the container is mapped to on the host and by default creates a new folder calledcontestsin 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.
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| opencontest-server-2.8.0.tar.gz | 20.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for opencontest-server 2.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.