SwanLab icon indicating copy to clipboard operation
SwanLab copied to clipboard

[ADVICE] Support log export

Open Puiching-Memory opened this issue 6 months ago • 1 comments

🤪 Features description [Please make everyone to understand it]

The plan will support exports in the following formats:

  • [ ] csv
  • [ ] txt
  • [ ] json
  • [ ] db(sqlite3)
  • [ ] html (single)
  • [ ] pdf

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 {}

Puiching-Memory avatar Aug 14 '24 06:08 Puiching-Memory