Skip to main content

DataLink protocol 1.1 client for reading and writing data using the DataLink protocol (e.g. EarthScope ringserver).

Project description

datalink-client

DataLink protocol client for reading and writing data using the DataLink protocol. DataLink is a simple, packet-based streaming protocol used in seismological data systems, primarily with EarthScope's ringserver software.

Installation

pip install datalink-client

Usage

Python API

from datalink_client import DataLink

with DataLink("localhost", 16000) as dl:
    dl.match("FDSN:IU_COLA_.*")
    dl.position_set("LATEST", 0)
    dl.stream()
    for packet in dl.collect():
        print(packet.streamid, len(packet.data))

Command-line client

An interactive client is available after install:

datalink-client [host:port]

Default is localhost:16000. Use datalink-client --help for options (timeout, TLS, auth).

Async usage

This package provides a synchronous client. For async/await support (e.g. with asyncio), use the simpledali package.

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

datalink_client-1.3.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datalink_client-1.3.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

Supported by

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