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
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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df89b70a79a4d014ed15acb7aada75059ed46a8fa3b28d4cdc42425965139649
|
|
| MD5 |
c4763610e3ecd3b9b05526227079d3e1
|
|
| BLAKE2b-256 |
a87105552e53b647f8e4e8684ce4ed1dcb7fff50566db45c3dca6575d3662353
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiwolf_nlp_common-0.6.8.tar.gz -
Subject digest:
df89b70a79a4d014ed15acb7aada75059ed46a8fa3b28d4cdc42425965139649 - Sigstore transparency entry: 292873562
- Sigstore integration time:
-
Permalink:
aiwolfdial/aiwolf-nlp-common@976b2757c69fed2fbe7c3e8301d5880ae0995bf8 -
Branch / Tag:
refs/tags/v0.6.8 - Owner: https://github.com/aiwolfdial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@976b2757c69fed2fbe7c3e8301d5880ae0995bf8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aiwolf_nlp_common-0.6.8-py3-none-any.whl.
File metadata
- Download URL: aiwolf_nlp_common-0.6.8-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9f936695bf9999144fdf8e192ad21a23e7383e14c2ce95165bdaa67634bb03b
|
|
| MD5 |
d28614602999f891b33b643fb90c8d7e
|
|
| BLAKE2b-256 |
4e492d58b62fdd9bbb711d03c0c6d599ee35bdde7e2bf39f6ffee248f1329c57
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiwolf_nlp_common-0.6.8-py3-none-any.whl -
Subject digest:
f9f936695bf9999144fdf8e192ad21a23e7383e14c2ce95165bdaa67634bb03b - Sigstore transparency entry: 292873579
- Sigstore integration time:
-
Permalink:
aiwolfdial/aiwolf-nlp-common@976b2757c69fed2fbe7c3e8301d5880ae0995bf8 -
Branch / Tag:
refs/tags/v0.6.8 - Owner: https://github.com/aiwolfdial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@976b2757c69fed2fbe7c3e8301d5880ae0995bf8 -
Trigger Event:
release
-
Statement type: