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.1.tar.gz (6.2 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wolfx_client-1.0.1.tar.gz
  • Upload date:
  • Size: 6.2 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.0.1.tar.gz
Algorithm Hash digest
SHA256 970b07d9c025517c21e8bd7b02ee69e5bead76ea01b67c60ced2413baf589406
MD5 a15597235f2e1092514f2acae0ccc404
BLAKE2b-256 f51c4ad25f1dcf908e6edd58a75bba7dc067e4ed5e1c950226cd3a9e3122e8be

See more details on using hashes here.

Provenance

The following attestation bundles were made for wolfx_client-1.0.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.0.1-py3-none-any.whl.

File metadata

  • Download URL: wolfx_client-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e0a533c338327b664a5fba872b7b25fb07bdde2fcf6e91969d6a7a6d55f1de7
MD5 e170f0e0b8438d790eebab595d2c3eb1
BLAKE2b-256 04004c4cbe26b17e53008119c46aa1a3d666d3c331dd9831d74e227c83eff069

See more details on using hashes here.

Provenance

The following attestation bundles were made for wolfx_client-1.0.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