DeepFriedMarshmallow
A plug-and-play JIT implementation for Marshmallow to speed up data serialization and deserialization
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you have a Marshmallow-based codebase where serialization is a measured bottleneck and you can test the speedup on your actual schemas. The low install friction and permissive license make adoption easy. However, the aging maintenance status (10 stars, last commit 2025-09-03) and modest adoption signal mean you should verify compatibility with your Marshmallow version and monitor the project for future updates before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later; Marshmallow version 3.13 or newer.
- Low install friction with three lightweight runtime dependencies (attrs, marshmallow, six).
- Maintenance status is aging—last commit was 2025-09-03 and the project has 10 stars, so adoption is modest and forward momentum unclear.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
last release 2025-09-03 (345 days) · last repo commit 2025-09-03 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 195,561 downloads/mo, #9,813 on PyPI
Alternatives
Verify before relying
pip install DeepFriedMarshmallow
from marshmallow import fields
from deepfriedmarshmallow import JitSchema
class ArtistSchema(JitSchema):
name = fields.Str()
schema = ArtistSchema()
result = schema.dump({"name": "Artist Name"})- Whether the 3-5x speedup claim is reproducible across real-world schemas and workloads beyond the benchmark shown.
- Current stability and compatibility with Marshmallow versions released after the package's last update.
- Whether the plugin system is actively used or documented in production deployments.
What it is and what it does
Deep-Fried Marshmallow is a JIT compiler layer for Marshmallow that generates optimized serialization and deserialization code at runtime. Instead of relying on Marshmallow's reflection-heavy approach, it introspects your schema once and produces fast, specialized code paths for dump and load operations. The package is a maintained fork of the abandoned Toasted Marshmallow project, updated to work with modern Marshmallow versions (3.13+) without requiring modifications to Marshmallow itself.
You enable it by either inheriting from JitSchema instead of Schema, calling deep_fry_marshmallow() globally to patch all schemas, or using the JitSchemaMixin for custom base classes. It also supports a plugin system for custom field inliners and JIT behaviors. The generated code optimistically assumes valid input and falls back to standard Marshmallow behavior on errors, so it's designed to be a drop-in replacement with no API changes.
Use it for
- High-throughput REST APIs where serializing thousands of objects per second matters for latency and throughput.
- Data pipelines that repeatedly dump and load the same schema structures, where JIT compilation amortizes well.
- Microservices with strict latency budgets that need faster JSON serialization without rewriting validation logic.
- Replacing Toasted Marshmallow in existing projects that need ongoing maintenance and compatibility with recent Marshmallow releases.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you have a Marshmallow-based codebase where serialization is a measured bottleneck and you can test the speedup on your actual schemas. The low install friction and permissive license make adoption easy. However, the aging maintenance status (10 stars, last commit 2025-09-03) and modest adoption signal mean you should verify compatibility with your Marshmallow version and monitor the project for future updates before relying on it in production.
Install
deepfriedmarshmallow on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (attrs, marshmallow, six). Maintenance status is aging—last commit was 2025-09-03 and the project has 10 stars, so adoption is modest and forward momentum unclear.
Requires Python 3.11 or later; Marshmallow version 3.13 or newer.
License in practice
Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
Quickstart
pip install DeepFriedMarshmallow
from marshmallow import fields
from deepfriedmarshmallow import JitSchema
class ArtistSchema(JitSchema):
name = fields.Str()
schema = ArtistSchema()
result = schema.dump({"name": "Artist Name"})
Verify before relying
- Whether the 3-5x speedup claim is reproducible across real-world schemas and workloads beyond the benchmark shown.
- Current stability and compatibility with Marshmallow versions released after the package's last update.
- Whether the plugin system is actively used or documented in production deployments.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0.0,>=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesattrsmarshmallowsix |
| Maintenance | Aging 345 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 195,561 / month, #9,813 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: deepfriedmarshmallow-1.1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “marshmallow performance optimization”
- DeepFriedMarshmallowAccelerates Marshmallow schema serialization and deserialization by…
- marshmallow-unionAdds union field support to marshmallow, allowing a single field to…
- marshmallow-polyfieldExtends Marshmallow with a PolyField class that handles serialization…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also marshmallow · marshmallow-fastoneofschema · marshmallow-oneofschema · marshmallow-union · marshmallow-jsonapi · marshmallow-mongoengine · marshmallow-polyfield · marshmallow-enum · marshmallow-jsonschema · flask-marshmallow