Skip to main content

haxballgym

A composable, batched, RLGym-v2-style reinforcement-learning environment for Haxball, built on top of the headless haxball_core physics engine.

The physics is a faithful Rust port of Haxball's, verified to agree with the original engine to within 1e-9, and stepped in batches of thousands of matches in parallel — fast enough for serious self-play on a single machine.

Install

pip install haxballgym

This pulls in haxball_core (the Rust engine) automatically.

Quick start

from haxballgym import make_default_env

env = make_default_env(n_envs=512)
obs = env.reset()
obs, rewards, terminated, truncated = env.step(actions)

Or compose your own environment from the pieces — engine plus obs / action / reward / done / state-mutator builders:

from haxballgym import (
    TransitionEngine, DefaultObs, DiscreteAction,
    CombinedReward, GoalReward, TouchReward,
    GoalCondition, TimeoutCondition, KickoffMutator, Env,
)

See the project repository for the full docs, runnable training examples, and tools to play your trained policy back in the real browser game.

License

MIT

Metadata

Release files for haxballgym 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haxballgym 1.0.1
File Size Uploaded
haxballgym-1.0.1.tar.gz 60.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for haxballgym 1.0.1
File Interpreter ABI Platform
haxballgym-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 105.8 kB

Release files / haxballgym-1.0.1.tar.gz

Download URL haxballgym-1.0.1.tar.gz
Size 60.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3a7eb7adf03d4d50e7138400d55f3b8be5b6bd2411bceeaa836e0427f86c288f
BLAKE2b-256 checksum
How to use checksums
42067f7951a8210c36692f33f906490615c2ae90cd8fe7db499ddb5cae95bf20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.

Transparency log

Release files / haxballgym-1.0.1-py3-none-any.whl

Download URL haxballgym-1.0.1-py3-none-any.whl
Size 45.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
209fffa159097d1c30e51f27e80f81736ad2d0504f7b9c73c8eb0a2296c9df07
BLAKE2b-256 checksum
How to use checksums
e5ba3c7cf5bf9c71ed25a4b4e03a1f6f532cd2ff524100f5dba030514e48f788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

1 release file

0.3.2

1 release file

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page