Metadata-Version: 2.4
Name: ynu-m-contest-client
Version: 0.1.0
Summary: Python client SDK for contest-server
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31

# contest-client

Python SDK for the `contest-server`.

## Install (dev)
```bash
cd contest_client
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .
```

## Usage
```python
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))
```
