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.
Requires Python 3.11+.
Installation
pip install datalink-client
Usage
Sync API
from datalink_client import DataLink
with DataLink("localhost", 16000) as dl:
dl.match("FDSN:IU_COLA_.*")
dl.stream()
for packet in dl.collect():
print(packet.streamid, len(packet.data))
Async API
AsyncDataLink offers the same commands as DataLink, as coroutines, built on asyncio:
import asyncio
from datalink_client import AsyncDataLink
async def main():
async with AsyncDataLink("localhost", 16000) as dl:
await dl.match("FDSN:IU_COLA_.*")
await dl.stream()
async for packet in dl.collect():
print(packet.streamid, len(packet.data))
asyncio.run(main())
The simpledali package is another option for async/await support.
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).
Metadata
Release files for datalink-client 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datalink_client-1.5.1.tar.gz | 33.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datalink_client-1.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.9 kB
Release files / datalink_client-1.5.1.tar.gz
| Download URL | datalink_client-1.5.1.tar.gz |
|---|---|
| Size | 33.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3a8d9d793e4af48f38bd56587bb2c30b3492c89e25f85292046fd05fdd28cb8
|
|
BLAKE2b-256 checksum How to use checksums |
6fb42702884ac62cc903ba7046ce7767d43d043802052e7e33cd2d52a47a206b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / datalink_client-1.5.1-py3-none-any.whl
| Download URL | datalink_client-1.5.1-py3-none-any.whl |
|---|---|
| Size | 37.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea7ef14febdf5a92cd1f447f56dd0fdf4dab1f8e45a3190eb49fb669486bd2a3
|
|
BLAKE2b-256 checksum How to use checksums |
6577d21b46e052b899b02fc3c5dc498591ce3ce1ad8f1b1e801c0c4534d197de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency log