Skip to main content

Pysislab - CRISiSLab Seismometer Network Client

Description

This is a client for CRISiSLab's Seismometer Network API using WebSockets and MessagePack.

Installation

$ pip install pysislab

Usage

To list all stations (optionally in CSV format)

$ pysislab --list --csv

To watch live data in real time for a particular seismometer

$ pysislab --tail <seismometer id>

Or the equivalent in Python

from pysislab import get_sensors

for sensor in get_sensors():
    print(
        sensor.id,
        sensor.secondary_id,
        sensor.type,
        sensor.publicLocation,
        sensor.online,
    )
from pysislab import SensorTail

for datagram in SensorTail(22):
    print(datagram.channel, datagram.timestamp, datagram.data)

For more examples, see the CLI implementation.

See the models file for the full list of attributes available on each class.

Metadata

Release files for pysislab 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysislab 0.0.7
File Size Uploaded
pysislab-0.0.7.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysislab 0.0.7
File Interpreter ABI Platform
pysislab-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / pysislab-0.0.7.tar.gz

Download URL pysislab-0.0.7.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0e9b26c34aef27cfcf632eb4bc66a2ac1db48cbc4c13a0b29b0ac83c26284d2f
BLAKE2b-256 checksum
How to use checksums
6686851c65fc190677f7b9c2c25356b3382e49a66f6c7bbbcb63a29147c0d8d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / pysislab-0.0.7-py3-none-any.whl

Download URL pysislab-0.0.7-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3586d8247e7e6392b2dbfe809b232480e28320c7ab976c5e4de1718c429b8593
BLAKE2b-256 checksum
How to use checksums
bb5d889db3685bf57aba9589873cc8ff3d0522dfc3ed7ff9209743c19b59e8f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page