{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"}],"enrichment":{"capability":"Parses binary data into Python dataclasses and packs dataclasses back into binary data using construct expressions.","skillfed_tags":["binary-parsing","dataclass-serialization"],"use_cases":["Parse network protocol packets or binary file formats into typed dataclass objects for type-safe processing","Serialize application dataclasses into binary format for storage or transmission over binary protocols","Define binary struct schemas as Python classes with IDE autocompletion and static type checking","Build binary protocol handlers where construct expressions define the wire format and dataclasses define the in-memory representation"],"what_it_does":"construct-classes bridges the gap between the construct library and Python dataclasses, letting you define binary data formats as typed dataclass structs. You write a Construct expression in a SUBCON class attribute, and the package handles parsing binary input into dataclass instances and building dataclass instances back into binary output. The dataclass fields must match the Construct struct field names, and you are responsible for keeping them in sync\u2014there is no automatic type verification.\n\nThe package supports nested structs and lists through explicit type hints and a subcon() helper, and it integrates with the dataclass decorator system, allowing you to use standard dataclass parameters like frozen=True or kw_only. It typechecks cleanly with mypy and pyright, making it suitable for projects that want strong typing around binary protocols.","worth_installing":"Yes, if you need to work with binary data formats and want the safety of typed dataclasses. The package is actively maintained, has no security vulnerabilities, and low install friction. The main trade-off is that you must manually keep Construct expressions and dataclass fields in sync\u2014this is acceptable for small to medium projects but could become error-prone at scale without additional tooling like construct-typing."},"id":"construct-classes","links":{"html":"https://skillfed.io/packages/construct-classes","md":"https://skillfed.io/packages/construct-classes.md","pypi":"https://pypi.org/project/construct-classes/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-31","license_spdx":"MIT","license_treatment":"permissive","name":"construct-classes","python_support":"supports_current","summary":"Parse your binary structs into dataclasses"},"popularity":{"monthly_downloads":158535,"position":10720,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.3"}
