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
Release history Release notifications | RSS feed
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.3.tar.gz
(42.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiwolf_nlp_common-0.6.3.tar.gz.
File metadata
- Download URL: aiwolf_nlp_common-0.6.3.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c52054a2eb78d4070daf3c093dee2d5634b405eb1097e30f6d40dffda4e0e52b
|
|
| MD5 |
aafa7ee165b27dbbb33f99b7ca08a3e1
|
|
| BLAKE2b-256 |
6347cb2f000febec300c9ee63c3f1005f947d54c27f55ce17ccd3652689ccb4b
|
File details
Details for the file aiwolf_nlp_common-0.6.3-py3-none-any.whl.
File metadata
- Download URL: aiwolf_nlp_common-0.6.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64cf7b1e2b8d5ca683d0bdfbdff328e8dfb6af27f258ef430c89c73ab7e5e9ec
|
|
| MD5 |
61498f0b3d3dd338641273634cd4e6fc
|
|
| BLAKE2b-256 |
a62079878aee004eee06d5e50bd964c10bc13b8b3d47fdf290a0b8e1b8469af8
|