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

パッケージのビルド

pyright --createstub aiwolf_nlp_common
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.10.tar.gz (36.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.10-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiwolf_nlp_common-0.6.10.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiwolf_nlp_common-0.6.10.tar.gz
Algorithm Hash digest
SHA256 91ea2779946aec58903daf9462ed0fe82dc164e000e3c82ec3d124adfc8f6792
MD5 3ebe868820a292035e4a2d762b1c87d9
BLAKE2b-256 95af18406229ea5c6c7d6c3e79c3f58af1ada2ca42bbd94671706945a4ccf32b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiwolf_nlp_common-0.6.10.tar.gz:

Publisher: python-publish.yml on aiwolfdial/aiwolf-nlp-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for aiwolf_nlp_common-0.6.10-py3-none-any.whl
Algorithm Hash digest
SHA256 cf48a6f89b7dc920e5d8a4a22ead984a9d2ca3aa9738d15584c2225f870ad351
MD5 420b63574f2e1cdab808ca587909bf0e
BLAKE2b-256 fa531baa653d5273e8436e9bf05bd09023a0ddd5d71bb398934013bf7b2d1716

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiwolf_nlp_common-0.6.10-py3-none-any.whl:

Publisher: python-publish.yml on aiwolfdial/aiwolf-nlp-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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