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.20.8

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

Total release size: 25.0 MB

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

Download URL gitcg-0.20.8-py3-none-win_amd64.whl
Size 6.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
faf60aedaf8efd28f91d75a4b940509f659228229a64701d86e04e0870228adc
BLAKE2b-256 checksum
How to use checksums
0b02a556585aa32f640bc21d7c67db521944c42b04e9de35f5d77c4011133c70
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 Aug 25, 2026.

Transparency log

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

Download URL gitcg-0.20.8-py3-none-manylinux_2_34_x86_64.whl
Size 10.9 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cd5dae2684c4709f2dccf12804bfa7e6d953d7adb46a6225f2d058e6a1a9285f
BLAKE2b-256 checksum
How to use checksums
85e93f3b313b7bbee7157dc86b7685fde0ff8619b812fdc996488819dbb1360a
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 Aug 25, 2026.

Transparency log

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

Download URL gitcg-0.20.8-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
84c34cd9185cde2bf954fe2f089801b50111801275f3f080b0789939f7639ec9
BLAKE2b-256 checksum
How to use checksums
7588d5e3482288f56d470cf84e50ac37f28c820569320081bbce385a42780221
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 Aug 25, 2026.

Transparency log

Security for gitcg 0.20.8

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.20.8-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 Aug 25, 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