Crates.io | ts-merger |
lib.rs | ts-merger |
version | 0.2.0 |
source | src |
created_at | 2024-11-04 04:20:29.013994 |
updated_at | 2024-11-11 18:45:35.500314 |
description | A multi-threaded tool for processing and aggregating time series data files |
homepage | |
repository | |
max_upload_size | |
id | 1434544 |
size | 14,897 |
A multi-threaded tool for combining and processing time series data files.
# installation (assuming rust and cargo is installed)
cargo install ts-merger
# Basic usage with default .csv extension
ts-merger /path/to/data
# Custom file extension
ts-merger /path/to/data .txt
data/
├── temperature_1.csv
├── temperature_2.csv
└── pressure_1.csv
# temperature_1.csv
id, timestamp, value
A1, 2024-01-01 00:00:00, 20.5
A2, 2024-01-01 00:01:00, 21.0
A3, 2024-01-01 00:02:00, 20.8
# temperature_2.csv
id, timestamp, value
A1, 2024-01-01 00:00:00, 19.5
A2, 2024-01-01 00:01:00, 20.0
A3, 2024-01-01 00:02:00, 19.8
# pressure_1.csv
id, timestamp, value
B1, 2024-01-01 00:00:00, 1013.2
B2, 2024-01-01 00:01:00, 1013.4
B3, 2024-01-01 00:02:00, 1013.1
data/
├── temperature.csv
└── pressure.csv
# temperature.csv (sum of _1 and _2 files)
id, timestamp, value
A1, 2024-01-01 00:00:00, 40.0
A2, 2024-01-01 00:01:00, 41.0
A3, 2024-01-01 00:02:00, 40.6
# pressure.csv (renamed from pressure_1.csv)
id, timestamp, value
B1, 2024-01-01 00:00:00, 1013.2
B2, 2024-01-01 00:01:00, 1013.4
B3, 2024-01-01 00:02:00, 1013.1
AGPL-3.0