Skip to main content

pachinko-pybind

The official Python SDK for Pachinko-RTS — a real-time-strategy game with a poker-style betting layer, built to be played by bots. Write a bot, test it offline against the built-in AI, train an RL policy in the Gymnasium environment, then connect it to the live server.

Docs & getting started: pachinko-rts.com/bots · Example bot repo: Slaggamuffin/pachinko-rts-bot

What's in the wheel

Package What it is
pachinko_sdk Bot API (pure Python): Bot base class, typed game state, actions, betting hooks, offline runner (run_local), live-server client (run_online)
pachinko_gym Gymnasium environment for RL training — tensor observations, self-play from any seat, batch evaluation
pachinko_pybind The compiled game engine core (Rust, via PyO3) that powers offline play — the exact engine the live server runs

Quickstart

pip install pachinko-pybind
from pachinko_sdk import Bot, AttackMoveGroup, run_local

class Rusher(Bot):
    def on_tick(self, state):
        if not state.enemy_units:
            return []
        target = state.enemy_units[0]
        return [AttackMoveGroup([u.id for u in state.my_units], target.x, target.y)]

result = run_local(Rusher(), num_players=2, seed=42)
print(result.placement, result.net_chips)

Betting is optional to engage with — the Bot defaults auto-call every betting round, so an RTS-only bot works out of the box. Override on_bet_action / on_mulligan when you want to play the chips too.

Offline play is identical to live play: run_local runs the server's match rules (time cap and score tiebreak, betting every 5 minutes, the command rate limit, settlement, the live economy) and drives your bot with the same SDK code as run_online, so it gets the same GameState and callbacks. For training, pachinko_pybind.LiveGame is the same match step by step (with multi-game stepping on all cores, snapshots, and built-in-AI labels), and the pachinko_gym environment uses the same rules. Every rule can be switched off for an experiment.

To play on the live server, create a bot account at pachinko-rts.com, then:

from pachinko_sdk import run_online
run_online(MyBot(), "https://pachinko-rts.com/orchestrator", bot_token="...")

Full API reference, RL training guide, and worked examples: pachinko-rts.com/bots.

Supported platforms

Prebuilt wheels for Python 3.9+ on:

  • Linux x86_64 / aarch64 (manylinux and musllinux)
  • macOS arm64
  • Windows x64

Provenance & source

The engine core is the closed-source engine of the live game, so this package ships as prebuilt wheels only (no sdist). What you can verify:

  • Every release is built and published from GitHub Actions via PyPI Trusted Publishing — no human ever handles the wheels or an API token. Each file on PyPI carries a provenance attestation; see the "details" link next to any file under Download files.
  • The Python halves (pachinko_sdk, pachinko_gym) ship as readable source inside the wheel — pip download pachinko-pybind and unzip it to audit them. The SDK makes network connections only when you call run_online / run, and only to the server URL you pass it.

License

MIT.

Metadata

Release files for pachinko-pybind 0.8.5

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

Built distributions (wheels)

Table of built distributions (wheels) for pachinko-pybind 0.8.5
File Actions
pachinko_pybind-0.8.5-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for pachinko_pybind-0.8.5-cp39-abi3-win_amd64.whl
pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_x86_64.whl
pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_aarch64.whl
pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pachinko_pybind-0.8.5-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for pachinko_pybind-0.8.5-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 5.4 MB

Release files / pachinko_pybind-0.8.5-cp39-abi3-win_amd64.whl

Download URL pachinko_pybind-0.8.5-cp39-abi3-win_amd64.whl
Size 786.5 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4f3b3818c7b4ae037542c9f369f959698144823c31b4dc19f8b5da398b63bfb4
BLAKE2b-256 checksum
How to use checksums
7cff1f15517e8308f33cd69be06140be227dad9b6c44624ba1f2caa1be0864c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Oct 6, 2026.

Transparency log

Release files / pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
3872cc3b7b7505355a6102bd2310c84097cc1b882b268a32cc5e21fa3e169373
BLAKE2b-256 checksum
How to use checksums
37e5df0169dc75c5372813d4bc8dc7bbb59fe51472447064f1fad22b5ed3ccfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Oct 6, 2026.

Transparency log

Release files / pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL pachinko_pybind-0.8.5-cp39-abi3-musllinux_1_2_aarch64.whl
Size 995.6 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
8ecc507f725ee67e72b0b6e35084c2f1c7c71341bf8f83a60e031781a100f63b
BLAKE2b-256 checksum
How to use checksums
b8a77cc7e20e2ef75a9b2bfdb9f4236c92710ef7c9a5f428146d5db4ca73cde2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Oct 6, 2026.

Transparency log

Release files / pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 893.4 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b4e98ba9a5e774fe607f4a2143e6cdbdbce9787bee7d705598e4764f2859abc7
BLAKE2b-256 checksum
How to use checksums
4f923416eb2d8916655088dbcbcf8a41550c201f04bfecfab64ef5d9fc7285e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Oct 6, 2026.

Transparency log

Release files / pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pachinko_pybind-0.8.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 823.4 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
53891f67d9b33cf00472e662e477abe42cf89c851b4a65761841fb7bb96f76d3
BLAKE2b-256 checksum
How to use checksums
3fa4d73866cbc1edb90662b7a869f8e0ed32a78d9a4871e4b564cef866b03075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Oct 6, 2026.

Transparency log

Release files / pachinko_pybind-0.8.5-cp39-abi3-macosx_11_0_arm64.whl

Download URL pachinko_pybind-0.8.5-cp39-abi3-macosx_11_0_arm64.whl
Size 789.9 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf48d7b94faa17803336bdaf77585f84594f2507dbd145d6c1bf745bc9013ba5
BLAKE2b-256 checksum
How to use checksums
98da23b98881d4ed844577ddc4b2c9e884889c892cb836be081da5ce86a8670c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Oct 6, 2026.

Transparency log

Security for pachinko-pybind 0.8.5

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.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for pachinko_pybind-0.8.5-cp39-abi3-win_amd64.whl

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 Oct 6, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.8.5 This release

6 release files Full provenance

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