hexgame-server — Hex game server
FastAPI WebSocket Hex game server with matchmaking, best-of series, server-authoritative gameplay, win detection, reconnect tokens, configurable first-player, and an optional Redis/PostgreSQL state backend. Ships with a built-in Vite/React dashboard (/, /docs, /overview, /statistics) and a browser play page at /play with in-browser DQN and AlphaZero bots powered by ONNX Runtime Web.
Installing this package gives you the hexgame-server command.
Install
pip install hexgame-server # core
pip install "hexgame-server[redis]" # + Redis state backend
pip install "hexgame-server[postgres]" # + PostgreSQL completed-series history
pip install "hexgame-server[all]" # both backends
hexgame-server is independent from the hexgame client distribution — install that one as well only if you want to play against your own server from the same machine.
Run
hexgame-server --host 0.0.0.0 --port 8000
# optional flags: --reload, --workers N (Redis backend required), --log-level info
Then open:
- Landing page: http://127.0.0.1:8000/
- Slot state JSON: http://127.0.0.1:8000/slots
- Overview dashboard: http://127.0.0.1:8000/overview
- Statistics leaderboard: http://127.0.0.1:8000/statistics
- Browser play: http://127.0.0.1:8000/play
See the main repository README for the full server documentation, WebSocket protocol, deployment options (Docker), and design notes.
Metadata
Release files for hexgame-server 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hexgame_server-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for hexgame_server-0.4.3-py3-none-any.whl |
Release files / hexgame_server-0.4.3-py3-none-any.whl
| Download URL | hexgame_server-0.4.3-py3-none-any.whl |
|---|---|
| Size | 44.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a5d52fdc099187e9d959017c6bdfccb0291443fe39bfef9208b5d556e9bfdbb
|
|
BLAKE2b-256 checksum How to use checksums |
3df83867562b0f37f339708262d88c310d957626d17bc62862c744971e09dcf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for hexgame-server 0.4.3
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.