インストール¶
要件¶
- Python 3.10 以上
- JVLinkServer への接続先
- Windows: ローカルで自動起動
- Linux/macOS: Windows ホスト上の JVLinkServer へ接続
- JV-Link(JRA-VAN 提供)が Windows 側にインストール済み
pip インストール¶
GitHub 版を使う場合:
リモート Windows サーバーへの接続¶
動作確認¶
import asyncio
from pyjvlink import Client
async def check() -> None:
async with Client() as client:
health = await client.get_health()
print(health)
asyncio.run(check())
補足¶
Client()はhost=127.0.0.1接続時にサーバー起動を試みます。- Linux/macOS ではローカル自動起動は行わず、接続先サーバーが必要です。