Skip to main content

Genius Invokation TCG (Python binding)

This Python binding of GI-TCG is based on the C Binding and Python ctypes FFI.

A very simple usage example:

from gitcg import Deck, Player, Game

# Set players initial deck
DECK0 = Deck(characters=[1411, 1510, 2103], cards=[214111, 311503, ...])
DECK1 = Deck(characters=[1609, 2203, 1608], cards=[312025, 321002, ...])

class MyPlayer(Player):
    # implements on_notify, on_action, etc.
    # See `gitcg.Player`'s documentation for detail.
    pass

# Initialize the game
game = Game(create_param=CreateParam(deck0=DECK0, deck1=DECK1))
game.set_player(0, MyPlayer())
game.set_player(1, MyPlayer())

# Start and step the game until end
game.start()
while game.is_running():
    game.step()

Here is a generated API documentation.

Metadata

Release files for gitcg 0.21.0

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 gitcg 0.21.0
File Interpreter ABI Platform Actions
gitcg-0.21.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for gitcg-0.21.0-py3-none-win_amd64.whl
gitcg-0.21.0-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for gitcg-0.21.0-py3-none-manylinux_2_34_x86_64.whl
gitcg-0.21.0-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for gitcg-0.21.0-py3-none-macosx_15_0_arm64.whl

Total release size: 25.0 MB

Release files / gitcg-0.21.0-py3-none-win_amd64.whl

Download URL gitcg-0.21.0-py3-none-win_amd64.whl
Size 6.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6a8ad085efef43a4786b9aecced79bcf2a0c0e851ffa55f74cccd9eb3eec7fb2
BLAKE2b-256 checksum
How to use checksums
59dd42aff1d944ca5c59f5e3170bb44d98ccecca7e4fbe9947f6ad23becde7e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Release files / gitcg-0.21.0-py3-none-manylinux_2_34_x86_64.whl

Download URL gitcg-0.21.0-py3-none-manylinux_2_34_x86_64.whl
Size 11.0 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e25653ca48d48e0781d3eacabdb4e5e6aae486ff61a841a47249981a5bfaf625
BLAKE2b-256 checksum
How to use checksums
744331d8675ee425e17cdbf369c77257236a06a7fb802c2715de9d72707b398c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Release files / gitcg-0.21.0-py3-none-macosx_15_0_arm64.whl

Download URL gitcg-0.21.0-py3-none-macosx_15_0_arm64.whl
Size 7.7 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
58d26f87af8a3e76ae61c6c39ea53a8e8d97b054b867d0e2b42d566cb74e3c9f
BLAKE2b-256 checksum
How to use checksums
98cc28151409d2d8c28978fc57835f8c8b3a596f2b2056228e094fa0d1ed63ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Security for gitcg 0.21.0

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 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for gitcg-0.21.0-py3-none-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 Sep 24, 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.

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