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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa56c9df56de398c04f5cc4e2bf5ff7c81ccdcf4da5f3f2ec5fc5b891f21fa7e
|
|
| MD5 |
132260e0f5e49d79d70b08d0fe5a5ec3
|
|
| BLAKE2b-256 |
3bed4eecdfb9db7bcfa772c58afca8c76c424725c2981ce1ee1acf1e881d55be
|
Provenance
The following attestation bundles were made for wolfx_client-1.1.1.tar.gz:
Publisher:
python-publish.yml on aic-6301/wolfx_client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wolfx_client-1.1.1.tar.gz -
Subject digest:
fa56c9df56de398c04f5cc4e2bf5ff7c81ccdcf4da5f3f2ec5fc5b891f21fa7e - Sigstore transparency entry: 264589405
- Sigstore integration time:
-
Permalink:
aic-6301/wolfx_client@e8fce1781199d038e33de0cfb1440dc1e9415d33 -
Branch / Tag:
- Owner: https://github.com/aic-6301
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e8fce1781199d038e33de0cfb1440dc1e9415d33 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8080a570e5eef631150f745d2a80307ce4d1540c849ad8fce244e37ae238d6e1
|
|
| MD5 |
657bf111d3434f4666077f79ec4c8de0
|
|
| BLAKE2b-256 |
6c0b86c24dee1eade587481738fc64fef3b88bf164cf94616ef7a80401188db0
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wolfx_client-1.1.1-py3-none-any.whl -
Subject digest:
8080a570e5eef631150f745d2a80307ce4d1540c849ad8fce244e37ae238d6e1 - Sigstore transparency entry: 264589406
- Sigstore integration time:
-
Permalink:
aic-6301/wolfx_client@e8fce1781199d038e33de0cfb1440dc1e9415d33 -
Branch / Tag:
- Owner: https://github.com/aic-6301
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e8fce1781199d038e33de0cfb1440dc1e9415d33 -
Trigger Event:
release
-
Statement type: