Loading...
Loading...
Create, read, edit Excel .xlsx workbooks and CSVs.
npx skill4agent add nousresearch/hermes-agent xlsxxlsx_restructure.pyxlsx_recalc.pysoffice --headless --convert-to xlsx old.xlsopenpyxlpip install openpyxlsofficeterminalscripts/--helppython scripts/xlsx_create.py spec.json report.xlsx # build from JSON spec
python scripts/xlsx_read.py report.xlsx --sheets # inventory
python scripts/xlsx_read.py report.xlsx --json --sheet Data
python scripts/xlsx_read.py report.xlsx --formulas
python scripts/xlsx_edit.py report.xlsx --sheet Data --set B2=42 --recalc
python scripts/xlsx_restructure.py report.xlsx --sheet Data --insert-rows 3:2
python scripts/xlsx_recalc.py report.xlsx
python scripts/csv_to_xlsx.py data.csv out.xlsx --encoding utf-8
python scripts/xlsx_to_csv.py report.xlsx out.csv --sheet Datawrite_fileread_file| Task | Command |
|---|---|
| Create workbook from spec | |
| Sheet names + dimensions | |
| Dump sheet as JSON | |
| Dump sheet as CSV | |
| List formulas + cached values | |
| Set a cell / formula | |
| Append a row | |
| Insert 2 rows, refs NOT shifted | |
| Insert 2 rows, refs shifted | |
| Delete a column, refs shifted | |
| Create a native table | |
| Append inside a table | |
| List tables | |
| Defined names | |
| Hyperlink | `--hyperlink "A1=https://example.com |
| Cell note | `--note "B2=Check this |
| Protect sheet (see Pitfalls) | |
| Recalculate via LibreOffice | |
| Copy / rename sheet | |
| Force recalc on open | |
| CSV -> styled xlsx | |
| xlsx -> CSV | |
xlsx_create.py --helprowscellscolumn_widthsrow_heightsmergesfreeze_panesautofilterconditional_formatschartsvalidationstablesprotectiondefined_nameshyperlinknote{"value": "2026-01-31", "type": "date"}"$#,##0.00""0.0%""yyyy-mm-dd""formula": "SUM(B2:B9)"--set "C1==SUM(A:A)""full_calc_on_load": true--recalcfullCalcOnLoad--sheets--json--csv--formulas--notes--namesnullxlsx_recalc.py file.xlsx{"recalculated": false, ...}soffice--data-onlyxlsx_edit.py--set--append--outxlsx_restructure.pyxlsx_edit.py$not_shiftedreferences/restructuring.mdcsv_to_xlsx.pyxlsx_to_csv.py--encodingutf-8-sigcp1252soffice --headless --convert-to pdf report.xlsx --outdir out/
soffice --headless --convert-to csv report.xlsx --outdir out/ # 1st sheet onlyxlsx_to_csv.py --sheet NAMEsofficeload_workbook(path, data_only=True)Nonexlsx_edit.pyxlsx_restructure.pynot_shiftedreferences/restructuring.md--protectdata_only=True;--delimiter ';'"12,5"datetimedate[ ] : * ? / \xlsx_read.py out.xlsx --sheets--json--formulas--recalcxlsx_restructure.py--formulas--sheetssoffice --headless --convert-to pdf out.xlsx