Crates.io | dxclparser |
lib.rs | dxclparser |
version | 1.0.1 |
source | src |
created_at | 2022-06-09 12:05:54.603174 |
updated_at | 2022-09-09 09:48:58.671936 |
description | A regex-based parser for the telnet interface provided by a DX cluster |
homepage | |
repository | https://github.com/koarlchen/dxclparser.git |
max_upload_size | |
id | 602575 |
size | 54,007 |
A regex-based parser for the telnet interface provided by a DX cluster.
See example/
folder for exemplary usage.
Note: A RBN spot is a spot of the type DX with a special format of the comment section. Therefore this library provides a separate method for extracting the RBN information out of the comment section of an already parsed DX spot.
To build this library, simply execute cargo build [--release]
.
The basic test cases can be executed through cargo test
.
The example basic.rs
parses a spot given as a commandline argument. See therefore also the shell script basic_run.sh
which uses netcat to connect to a cluster server and outputs the parsed spot in its json format.
The example type.rs
also takes a spot as a commandline argument but demonstrates how to handle each type of spot separately.
The example file.rs
reads a file given as a commandline argument line by line and outputs the parsed spots in its json format.
A given spot will be parsed by the corresponding regular expression. Since the different cluster software implementations format the spot slightly different, some fields may be missing and are marked as optional.