Skip to main content

Package to send data in the SFTI Biotechnology Spearhead project

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

sfti-net-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

sfti_net-0.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file sfti-net-0.0.1.tar.gz.

File metadata

  • Download URL: sfti-net-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for sfti-net-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ce27db51d0644a3f874cc8df3cd0c5a1879387e834aceb7822d6b8fd69498407
MD5 970bf715c0da23fb3dc020e0798a5587
BLAKE2b-256 ceee88596a805840948cf1a237ae9cba4b8de88c7d4c2f504e26d202d7128ce7

See more details on using hashes here.

File details

Details for the file sfti_net-0.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sfti_net-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a742015ce06280246d62cff6f405ceb06c8cd6c6f2cc451a9de223d5dfb3c83
MD5 e192d3112105940677b667d415ed0aef
BLAKE2b-256 c22b418b20bd69ee93f3b0149ed2b87a457de307e9957bc8c31dfc54da56c736

See more details on using hashes here.

Supported by

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