Skip to content

Add dict and json output to dumpstruct #156

Open
Schamper wants to merge 5 commits into
mainfrom
dumpstruct-json
Open

Add dict and json output to dumpstruct #156
Schamper wants to merge 5 commits into
mainfrom
dumpstruct-json

Conversation

@Schamper

@Schamper Schamper commented Apr 29, 2026

Copy link
Copy Markdown
Member

Refactors dumpstruct to add the ability to generate dict and JSON information about a structure. The rendering is also updated to use this dictionary representation.

Also some small maintenance cleanup on the example scripts.

Disclaimer: this change has a fairly high vibe ratio, but it ends up handling quite a few dumpstruct improvements.

@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 112 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (9f12b1e) to head (d9cc121).

Files with missing lines Patch % Lines
dissect/cstruct/utils.py 0.00% 112 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #156   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         21      21           
  Lines       2482    2549   +67     
=====================================
- Misses      2482    2549   +67     
Flag Coverage Δ
unittests 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq

codspeed-hq Bot commented Apr 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 12 untouched benchmarks


Comparing dumpstruct-json (d9cc121) with main (9f12b1e)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant