v1.3.0 — Export Release (JSON, Tree, Excel)
What's New in v1.3.0
New Features
export_json— Export full scan results as formatted JSON file. Zero external dependencies — fully native using Python's built-in json module.export_tree— Save complete DFS directory tree to a.txtfile simultaneously alongside stdout. Written incrementally — no memory accumulation.export_excel— Export scan results to a structured.xlsxfile with three sheets: Categories, Extensions, and Summary. Requiresopenpyxl.
Bug Fixes
- Fixed MSVC Windows compiler compatibility — added
#include <stdint.h>foruint64_tsupport - Fixed
PATH_MAXundefined error on Windows MSVC - Fixed variable declarations for strict C89/C90 MSVC compliance
- Added
/std:c11flag insetup.pyfor Windows builds
API Changes
Three new optional parameters added to anscom.scan():
export_json=None— path to output JSON fileexport_tree=None— path to output TXT file (requiresshow_tree=True)export_excel=None— path to output XLSX file (requirespip install anscom[excel])
Installation
pip install anscom==1.3.0
# For Excel support:
pip install anscom[excel]Full Example
import anscom
anscom.scan(
"/path",
show_tree=True,
export_json="results.json",
export_tree="tree.txt",
export_excel="report.xlsx"
)