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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e9b26c34aef27cfcf632eb4bc66a2ac1db48cbc4c13a0b29b0ac83c26284d2f
|
|
| MD5 |
f6eba3711db58bfad76facfa11f8287e
|
|
| BLAKE2b-256 |
6686851c65fc190677f7b9c2c25356b3382e49a66f6c7bbbcb63a29147c0d8d3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3586d8247e7e6392b2dbfe809b232480e28320c7ab976c5e4de1718c429b8593
|
|
| MD5 |
4f3a8dbd828e3c76a41d339ff161ab9f
|
|
| BLAKE2b-256 |
bb5d889db3685bf57aba9589873cc8ff3d0522dfc3ed7ff9209743c19b59e8f6
|