{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"Generates marshmallow schemas from SQLAlchemy models to serialize and deserialize database objects to and from JSON or other formats.","skillfed_tags":["orm-serialization","rest-api","data-validation"],"use_cases":["Build REST APIs that serialize SQLAlchemy models to JSON responses and validate incoming request data","Generate API documentation schemas automatically from your database model definitions","Validate and deserialize incoming data directly into ORM instances within a session","Export database records to JSON or other formats for reporting or data migration","Decouple your API contract from your internal model structure using schema field customization"],"what_it_does":"marshmallow-sqlalchemy bridges SQLAlchemy ORM models and the marshmallow serialization library, letting you define schemas that automatically map database columns and relationships to serializable fields. Instead of writing field definitions by hand, you declare a schema class pointing to your SQLAlchemy model, and the library generates the fields for you\u2014optionally including relationships and foreign keys. You can then use the schema to dump model instances to dictionaries (for JSON APIs) or load dictionaries back into model instances.\n\nThe package handles the common pattern of building REST APIs or other services that need to convert between database objects and wire formats. It integrates with SQLAlchemy sessions to manage object loading and validation, and supports both explicit field declaration (auto_field) and full automatic schema generation (SQLAlchemyAutoSchema). The library is lightweight, with no dependencies beyond marshmallow and SQLAlchemy themselves.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a standard problem in database-backed applications. It's widely used (top 5000 on PyPI) and permissively licensed. Install it if you're building APIs or services that need to serialize SQLAlchemy models."},"id":"marshmallow-sqlalchemy","links":{"html":"https://skillfed.io/packages/marshmallow-sqlalchemy","md":"https://skillfed.io/packages/marshmallow-sqlalchemy.md","pypi":"https://pypi.org/project/marshmallow-sqlalchemy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-01","license_spdx":null,"license_treatment":"permissive","name":"marshmallow-sqlalchemy","python_support":"supports_current","summary":"SQLAlchemy integration with the marshmallow (de)serialization library"},"popularity":{"monthly_downloads":12176068,"position":1337,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.5.0"}
