{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"Generates marshmallow schemas automatically from mongoengine document models, enabling serialization and deserialization of MongoDB data with minimal boilerplate.","skillfed_tags":["mongodb-serialization","schema-generation"],"use_cases":["Building REST APIs backed by MongoDB that need automatic request/response serialization and validation","Converting mongoengine documents to JSON for API responses without manual field mapping","Validating incoming JSON data against mongoengine document structure before saving to MongoDB","Reducing boilerplate by auto-generating marshmallow schemas from existing mongoengine models","Handling nested document relationships (references, lists) in serialization workflows"],"what_it_does":"marshmallow-mongoengine bridges mongoengine (a MongoDB ODM for Python) and marshmallow (a serialization/deserialization library) by automatically generating marshmallow schemas from mongoengine document models. Instead of manually writing schema definitions, you declare your mongoengine models and then wrap them in a ModelSchema class that inherits the field structure automatically. This eliminates repetition when you need to serialize mongoengine documents to JSON, validate incoming data, or deserialize it back into document instances.\n\nThe package handles the common workflow of MongoDB applications: define a mongoengine Document, create a corresponding schema, then use dump() to serialize instances and load() to deserialize and validate incoming data. It's particularly useful in REST APIs and other contexts where you need consistent validation and serialization of MongoDB documents without writing schema definitions twice.","worth_installing":"Yes, if you're already using mongoengine and marshmallow together. The package eliminates schema duplication and integrates cleanly with both libraries. However, note that the last release was 2023-03-14; verify compatibility with your specific versions of mongoengine and marshmallow before adopting, and monitor the repository for any compatibility issues with newer releases of those dependencies."},"id":"marshmallow-mongoengine","links":{"html":"https://skillfed.io/packages/marshmallow-mongoengine","md":"https://skillfed.io/packages/marshmallow-mongoengine.md","pypi":"https://pypi.org/project/marshmallow-mongoengine/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-03-14","license_spdx":null,"license_treatment":"permissive","name":"marshmallow-mongoengine","python_support":"unspecified","summary":"Mongoengine integration with the marshmallow (de)serialization library"},"popularity":{"monthly_downloads":148926,"position":11012,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.31.2"}
