SwanLab
SwanLab copied to clipboard
[ADVICE] Support log export
🤪 Features description [Please make everyone to understand it]
The plan will support exports in the following formats:
- [ ] csv
- [ ] txt
- [ ] json
- [ ] db(sqlite3)
- [ ] html (single)
After exporting, we can provide compression in the following formats:
- [ ] zip
- [ ] rar
- [ ] 7zip
- [ ] tar
- [ ] gzip
Of course, we also need the ability to load the exported logs back:
- [ ] decode
- [ ] unzip
👍 What problem does this feature solve
https://github.com/SwanHubX/SwanLab/issues/360 https://github.com/SwanHubX/SwanLab/issues/166
👾 What does the proposed API look like
swanlab.export(log_path,format,using_zip)
swanlab.import(log_file,save_path)
cil
swanlab export --log_path {} --format {} --using_zip {}
swanlab import --log_file {} --save_path {}