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.1.1.tar.gz (6.9 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.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wolfx_client-1.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wolfx_client-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fa56c9df56de398c04f5cc4e2bf5ff7c81ccdcf4da5f3f2ec5fc5b891f21fa7e
MD5 132260e0f5e49d79d70b08d0fe5a5ec3
BLAKE2b-256 3bed4eecdfb9db7bcfa772c58afca8c76c424725c2981ce1ee1acf1e881d55be

See more details on using hashes here.

Provenance

The following attestation bundles were made for wolfx_client-1.1.1.tar.gz:

Publisher: python-publish.yml on aic-6301/wolfx_client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: wolfx_client-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wolfx_client-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8080a570e5eef631150f745d2a80307ce4d1540c849ad8fce244e37ae238d6e1
MD5 657bf111d3434f4666077f79ec4c8de0
BLAKE2b-256 6c0b86c24dee1eade587481738fc64fef3b88bf164cf94616ef7a80401188db0

See more details on using hashes here.

Provenance

The following attestation bundles were made for wolfx_client-1.1.1-py3-none-any.whl:

Publisher: python-publish.yml on aic-6301/wolfx_client

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