Skip to main content

A WebSocket client for WolfX

Project description

Wolfx Client

Websocketを使用したPython用のWolfxクライアントです。

Usage

from wolfx_client import Client



client = Client()



@client.event

async def on_ready():

    print('Connected!')



@client.event

async def on_eew(data):

    print(f'EEW Detected! MaxScale: {data.MaxIntensity}')



client.run()

イベント関数

| 型名 | 説明 | 備考 |

|------------ |-------------------------- |--------------|

| Client | Websocketクライアント | 必須 |

| on_ready | 接続完了時のイベント | 非同期関数 |

| on_eew | 緊急地震速報受信時のイベント | 非同期関数 |

| on_eqlist | 地震情報受信時のイベント | 非同期関数 |

| on_heartbeat| 生存確認 | 非同期関数 |

クライアントオプション

Client(isEQL=True)といったように設定することはできますが、jma_eqlistの使用はこのライブラリでは非推奨となっています。(型が不安定。)

標準ではEEWのwebsocketに接続されます。

型はwolfxAPIドキュメントを参照してください。 (一応型の説明はつけてあります。)

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

wolfx_client-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wolfx_client-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file wolfx_client-1.0.0.tar.gz.

File metadata

  • Download URL: wolfx_client-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for wolfx_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 229019a0d4ea08980b7ff8b388dd9fb0f9dfaaddabb4787fc7ed4a3ed6c3ad67
MD5 23e2dd561f0da76ae75db2ace7f42c41
BLAKE2b-256 2190b4b57bc10e674cdd539c55ca04f63225c264cb4b4bc0b0907a5427892eb1

See more details on using hashes here.

File details

Details for the file wolfx_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wolfx_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for wolfx_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 120347e3325c737a82453989d92a2dfa68a3fb3aafa1bf1da631dec3e92924a8
MD5 fdd8bfe70f57adf375147d0eb462ff79
BLAKE2b-256 e1d8a05b2f4d62b8c356b07601e04859de2fc1add5557e9e25ec92160b509a07

See more details on using hashes here.

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