Skip to content

v1.3.0 — Export Release (JSON, Tree, Excel)

Choose a tag to compare

@PC5518 PC5518 released this 17 Mar 00:18
· 42 commits to main since this release
d87701b

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 .txt file simultaneously alongside stdout. Written incrementally — no memory accumulation.
  • export_excel — Export scan results to a structured .xlsx file with three sheets: Categories, Extensions, and Summary. Requires openpyxl.

Bug Fixes

  • Fixed MSVC Windows compiler compatibility — added #include <stdint.h> for uint64_t support
  • Fixed PATH_MAX undefined error on Windows MSVC
  • Fixed variable declarations for strict C89/C90 MSVC compliance
  • Added /std:c11 flag in setup.py for Windows builds

API Changes

Three new optional parameters added to anscom.scan():

  • export_json=None — path to output JSON file
  • export_tree=None — path to output TXT file (requires show_tree=True)
  • export_excel=None — path to output XLSX file (requires pip 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"
)