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.
pip install datalink-clientfrom 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))An interactive client is available after install:
datalink-client [host:port]Default is localhost:16000. Use datalink-client --help for options (timeout, TLS, auth).
This package provides a synchronous client. For async/await support (e.g. with asyncio), use the simpledali package.