Skip to main content

FastAPI WebSocket Hex game server with matchmaking, best-of series, win detection, reconnect, and an optional Redis/PostgreSQL state backend

Project description

hexgame-server — Hex game server

FastAPI WebSocket Hex game server with matchmaking, best-of series, server-authoritative gameplay, win detection, reconnect tokens, and an optional Redis/PostgreSQL state backend. Ships with a built-in Vite/React dashboard (/, /docs, /overview, /statistics).

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:

See the main repository README for the full server documentation, WebSocket protocol, deployment options (Docker), and design notes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexgame_server-0.3.1-py3-none-any.whl (102.3 kB view details)

Uploaded Python 3

File details

Details for the file hexgame_server-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: hexgame_server-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 102.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for hexgame_server-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d9f84799499510bbe33d249797655206a3159c55aad0c4ebd5197967814278d
MD5 c4dbcc3ed95ccfa2863d19bc684eb36f
BLAKE2b-256 40d60efbe0a741e7ec2ab31ea13da13889186625fa8f0f0c8bea3dc6972957fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page