{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/5"}],"enrichment":{"capability":"Converts dataclasses to and from dictionaries and other common types with minimal configuration, supporting nested structures, enums, unions, and custom validation.","skillfed_tags":["serialization","dataclass-utilities","type-conversion"],"use_cases":["Parse API responses into dataclass instances with automatic type validation and nested object handling.","Load configuration files (JSON, YAML) into typed dataclass structures for application settings.","Serialize dataclass instances back to dictionaries for database storage or API responses.","Validate and transform user input by loading it into a dataclass with custom validators.","Handle linked-list or tree structures where objects reference other instances of the same type."],"what_it_does":"dataclass_factory is a utility for bidirectional conversion between dataclass instances and dictionaries or other common types. It handles the boilerplate of parsing nested structures, enums, unions, and optional fields without requiring schema definitions. The factory pattern lets you load a dict into a typed dataclass instance with a single call, and dump instances back to dicts just as easily.\n\nIt's designed for scenarios where you need to deserialize external data (from APIs, configuration files, or databases) into strongly-typed Python objects, or serialize those objects back to plain data structures. The package supports cyclic references, generic dataclasses, and custom validators, making it suitable for complex domain models and data pipelines.","worth_installing":"Yes. Low install friction, active maintenance, no security issues, and permissive licensing make it a safe choice. Use it when you need to convert between dataclasses and dictionaries without schema boilerplate\u2014particularly for API clients, config loaders, or data pipelines where type safety matters."},"id":"dataclass-factory","links":{"html":"https://skillfed.io/packages/dataclass-factory","md":"https://skillfed.io/packages/dataclass-factory.md","pypi":"https://pypi.org/project/dataclass-factory/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-07-20","license_spdx":null,"license_treatment":"permissive","name":"dataclass-factory","python_support":"supports_current","summary":"An utility class for creating instances of dataclasses"},"popularity":{"monthly_downloads":90552,"position":13579,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.16"}
