{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"}],"enrichment":{"capability":"Extends marshmallow to handle polymorphic schema (de)serialization by automatically routing objects to the correct schema based on type, adding a type discriminator field to the output.","skillfed_tags":["serialization","polymorphic-types","schema-routing"],"use_cases":["Serialize heterogeneous lists of objects (e.g., different event types) to JSON with automatic type tagging for deserialization.","Build REST API responses that contain polymorphic data structures without manual type-checking logic.","Deserialize incoming JSON payloads that include a type discriminator into the correct Python object instances.","Replace an existing marshmallow-oneofschema installation with a performance-optimized version without code changes."],"what_it_does":"marshmallow-fastoneofschema is a drop-in replacement for marshmallow-oneofschema that adds polymorphic schema support to marshmallow. It lets you define a single schema that can serialize and deserialize multiple object types by routing each object to the appropriate sub-schema based on its type. During serialization, it inspects the object type, selects the matching schema, and adds a discriminator field (by default named 'type') to the output. During deserialization, it reads the discriminator field to determine which schema to use for reconstruction.\n\nThe package is designed as a performance-optimized fork with aggressive instance caching and reduced overhead for batch operations. It includes a .pth hook that redirects imports of the original marshmallow-oneofschema to this fork, allowing it to work as a transparent replacement. It also ships a DeepFriedMarshmallow plugin for JIT inlining of nested OneOfSchema fields. Configuration is available via environment variables (FOO_DISABLE_AGGRESSIVE_MODE, FOO_CONTEXT_ISOLATION) and per-schema class attributes.","worth_installing":"Yes, if you need polymorphic schema support in marshmallow and want a drop-in replacement for marshmallow-oneofschema. The low install friction, permissive license, and zero known vulnerabilities make it a straightforward choice. However, the aging maintenance status (no updates since initial release on 2025-09-02) and very low repository stars (1) suggest limited community adoption and testing; evaluate whether the performance claims and stability are suitable for your use case before committing to production."},"id":"marshmallow-fastoneofschema","links":{"html":"https://skillfed.io/packages/marshmallow-fastoneofschema","md":"https://skillfed.io/packages/marshmallow-fastoneofschema.md","pypi":"https://pypi.org/project/marshmallow-fastoneofschema/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-09-02","license_spdx":null,"license_treatment":"permissive","name":"marshmallow-fastoneofschema","python_support":"supports_current","summary":"fast marshmallow multiplexing schema"},"popularity":{"monthly_downloads":194570,"position":9831,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2025.9.2.1.dev7"}
