Skip to main content

aiwolf-nlp-common

Project description

aiwolf-nlp-common

人狼知能コンテスト(自然言語部門) のエージェント向けの共通パッケージです。
ゲームサーバから送信されるJSON形式のデータをオブジェクトに変換するためのパッケージです。

import json

from aiwolf_nlp_common.packet import Packet

value = json.loads(
    """{"request":"INITIALIZE"}""",
)
packet = Packet.from_dict(value)

print(packet.request) # Request.INITIALIZE

詳細については下記のプロトコルの説明やゲームサーバのソースコードを参考にしてください。
プロトコルの実装について

インストール方法

python -m pip install aiwolf-nlp-common

運営向け

パッケージ管理ツールとしてuvの使用を推奨します。

git clone https://github.com/aiwolfdial/aiwolf-nlp-common.git
cd aiwolf-nlp-common
uv venv
uv sync

パッケージのビルド

uv build

パッケージの配布

PyPI

uv publish --token <PyPIのアクセストークン>

TestPyPI

uv publish --publish-url https://test.pypi.org/legacy/ --token <TestPyPIのアクセストークン>

uvを使用しない場合については、パッケージ化と配布については下記のページを参考にしてください。
Packaging and distributing projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiwolf_nlp_common-0.6.4.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiwolf_nlp_common-0.6.4-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file aiwolf_nlp_common-0.6.4.tar.gz.

File metadata

  • Download URL: aiwolf_nlp_common-0.6.4.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.18

File hashes

Hashes for aiwolf_nlp_common-0.6.4.tar.gz
Algorithm Hash digest
SHA256 ab363c5d4bf409fb9b54f8796c7aef298d5264f2120967a504ec7bd1891340c7
MD5 ad81fcc6d95ad8013cbff75ff053d0e8
BLAKE2b-256 4b64899acf580f8fa6d606d9bba453353704c08a9d2196e5e8415986e574c70a

See more details on using hashes here.

File details

Details for the file aiwolf_nlp_common-0.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for aiwolf_nlp_common-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a60f0108dff804a75352d18de4e5b597505b1be8aa07beefa11485154f9273be
MD5 99106765a7c6f830f3f1c66ae13cc539
BLAKE2b-256 136b99d802cf6679e474f7890eb85b2a1250b752d017cf7445f1ba166cbe9a60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page