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.8.tar.gz (36.7 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.8-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiwolf_nlp_common-0.6.8.tar.gz
  • Upload date:
  • Size: 36.7 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.8.tar.gz
Algorithm Hash digest
SHA256 df89b70a79a4d014ed15acb7aada75059ed46a8fa3b28d4cdc42425965139649
MD5 c4763610e3ecd3b9b05526227079d3e1
BLAKE2b-256 a87105552e53b647f8e4e8684ce4ed1dcb7fff50566db45c3dca6575d3662353

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiwolf_nlp_common-0.6.8.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.8-py3-none-any.whl.

File metadata

File hashes

Hashes for aiwolf_nlp_common-0.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f9f936695bf9999144fdf8e192ad21a23e7383e14c2ce95165bdaa67634bb03b
MD5 d28614602999f891b33b643fb90c8d7e
BLAKE2b-256 4e492d58b62fdd9bbb711d03c0c6d599ee35bdde7e2bf39f6ffee248f1329c57

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiwolf_nlp_common-0.6.8-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