Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidak/notes2tsv
Convert notes of measurements to TSV format
https://github.com/davidak/notes2tsv
converter csv python tsv
Last synced: 14 days ago
JSON representation
Convert notes of measurements to TSV format
- Host: GitHub
- URL: https://github.com/davidak/notes2tsv
- Owner: davidak
- License: gpl-3.0
- Created: 2020-04-22T12:16:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T13:06:58.000Z (over 4 years ago)
- Last Synced: 2024-12-12T08:44:17.360Z (16 days ago)
- Topics: converter, csv, python, tsv
- Language: Python
- Homepage: https://codeberg.org/davidak/notes2tsv
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notes2tsv
Convert notes of measurements to TSV format
I made a lot of measurements while testing an appliance at work. Now i want to convert my notes into a spreadsheet. I have created this small script to convert the notes to TSV format. CSV would be more popular, but i have commas in the comments.
### Requirements
Tested with Python 3.7, but it should work with any later version too.
## Usage
1. Download this repository as zip and extract it or clone with git
2. Open a terminal and navigate to the repository, e.g. `cd Downloads/notes2tsv`
3. Run the script on your data, e.g. `./notes2tsv.py examples/data.txt >data.tsv`See files in `examples/` for example notes textfile and converted TSV file.
The following notes would look like that when converted:
```
30 Containers, ext4, dev net
Scan 8 hosts x 1 NVTs
Scan Duration 2:03h
Results: 962
Errors: 0
Target load: 030 Containers, ext4, dev net
Scan 8 hosts x 10 NVTs
Scan Duration 1:15h
Results: 1115
Errors: 168
Target load: 0
...
``````
Targets Hosts NVTs Scan Duration Results Errors Target load Target iowait GSM load Comment
30 8 1 2:03 962 0 0 30 Containers, ext4, dev net
30 8 10 1:15 1115 168 0 30 Containers, ext4, dev net
...
```## License
Copyright (C) 2020 [davidak](https://davidak.de/)
Licensed under the [GNU General Public License v3.0 or later](LICENSE).