Skip to main content

Package to fetch data from the CRISiSLab seismometer network

Project description

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.

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

pysislab-0.0.7.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

pysislab-0.0.7-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pysislab-0.0.7.tar.gz.

File metadata

  • Download URL: pysislab-0.0.7.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pysislab-0.0.7.tar.gz
Algorithm Hash digest
SHA256 0e9b26c34aef27cfcf632eb4bc66a2ac1db48cbc4c13a0b29b0ac83c26284d2f
MD5 f6eba3711db58bfad76facfa11f8287e
BLAKE2b-256 6686851c65fc190677f7b9c2c25356b3382e49a66f6c7bbbcb63a29147c0d8d3

See more details on using hashes here.

File details

Details for the file pysislab-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pysislab-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pysislab-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3586d8247e7e6392b2dbfe809b232480e28320c7ab976c5e4de1718c429b8593
MD5 4f3a8dbd828e3c76a41d339ff161ab9f
BLAKE2b-256 bb5d889db3685bf57aba9589873cc8ff3d0522dfc3ed7ff9209743c19b59e8f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page