Python client SDK for contest-server
Project description
contest-client
Python SDK for the contest-server.
Install (dev)
cd contest_client
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .
Usage
from contest_client import ContestClient
c = ContestClient("http://127.0.0.1:8000")
contest_id, admin_token = c.create_contest_toy(name="Demo", m=2, n_real=3)
team_id, api_key = c.create_team(contest_id, admin_token, "teamA")
res = c.submit(contest_id, team_id, api_key, {"x1": 0.1, "x2": 0.7, "x3": 0.9})
print(res)
print(c.leaderboard(contest_id))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ynu_m_contest_client-0.1.0.tar.gz.
File metadata
- Download URL: ynu_m_contest_client-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f5541807135eb4722a3d6968fb681dde9239c9f8298ec9df9bdf3b67a96c921
|
|
| MD5 |
c19014ad2e5573ba3340595bea7a7da6
|
|
| BLAKE2b-256 |
7230186e08fc1a0fb89286cb6dc0e6ea0ef2679c641fcf721ad81b85260cc5a0
|
File details
Details for the file ynu_m_contest_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ynu_m_contest_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d83fcfb187fe2f31caba982652995958862033a10e104127a715efb1c80aed80
|
|
| MD5 |
5cfceba5fa85fa2ffcbab05199f4f998
|
|
| BLAKE2b-256 |
c129e11380bbf720793b5b56868cb718a80a988b9abc83bf088be81a72a55257
|