Skip to main content

pyftg

An interface for implementing python AI in DareFightingICE

First, install pyftg with pip.

pip install pyftg

Initiate Gateway for connecting to DareFightingICE platform.

from pyftg.socket.aio.gateway import Gateway
gateway = Gateway(port=31415)

Construct an agent and register it to gateway and then run the game by using following code.

agent1 = KickAI()
agent2 = DisplayInfo()
gateway.register_ai("KickAI", agent1)
gateway.register_ai("DisplayInfo", agent2)
await gateway.run_game(["ZEN", "ZEN"], ["KickAI", "DisplayInfo"], game_num)

After all the process are done, please also close the gateway.

await gateway.close()

Please refer to the examples provided in the examples directory for more information.

For developer only

Please refer to this link.

  1. Increase version number in pyproject.toml

  2. Build project

python -m build

if the above command doesn't work due to no module named build error, install build library then try again

pip install build
  1. Push project to pypi
twine upload dist/*

Metadata

Release files for pyftg 2.3

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

Source distribution (sdist)

Source distribution for pyftg 2.3
File Size Uploaded Provenance
pyftg-2.3.tar.gz 20.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 51.4 kB

Release files / pyftg-2.3.tar.gz

Download URL pyftg-2.3.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c0593a66939dbc5a20b43629065624d0f6ce4531ba78cc577888385089098dad
BLAKE2b-256 checksum
How to use checksums
ccf3883701f396d19776c28c8d94fbf94fa87bed06931885b26c32f13aa89777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / pyftg-2.3-py3-none-any.whl

Download URL pyftg-2.3-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
375022330fc4395be4f09c9b3f4ec5adacb2ca0e969a65d81ff1e55b20505051
BLAKE2b-256 checksum
How to use checksums
f1ed1b6f941b1cb68907f305f5878602f256ed78e63f050c697a2fed6159fec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for pyftg 2.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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