marshmallow-enum
Enum field for Marshmallow
Decision gist · record as of 2026-08-14
Yes, if you are already using Marshmallow and need enum field support in an existing or stable codebase. The low install friction and permissive license make it a reasonable choice. However, be cautious: the package is unmaintained since 2019. Test compatibility with your Marshmallow and Python versions before adopting it in new projects, and monitor for any breaking changes in future Marshmallow releases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency (marshmallow).
- However, the package is abandoned—last release was 2019-08-21, over 2550 days ago.
- No recent maintenance or updates.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it safe for most projects from a licensing standpoint.
last release 2019-08-21 (2550 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,366,975 downloads/mo, #1,749 on PyPI
Alternatives
Verify before relying
pip install marshmallow-enum
from enum import Enum
from marshmallow import Schema
from marshmallow_enum import EnumField
class Color(Enum):
red = 1
green = 2
class MySchema(Schema):
color = EnumField(Color)
schema = MySchema()
schema.dump({'color': Color.red}) # {'color': 'red'}
schema.load({'color': 'red'}) # {'color': Color.red}- Whether the package works with current Marshmallow versions (3.x+) despite being unmaintained
- Whether Python 3.10+ Enum changes affect compatibility
- Active community forks or maintained alternatives available
What it is and what it does
marshmallow-enum adds an EnumField type to Marshmallow, the popular schema validation and serialization library. It handles conversion between Python Enum objects and their serialized forms (typically strings or values) during schema operations. The field integrates directly into Marshmallow schemas and supports customization of how enums are serialized (by name or by value) and deserialized independently.
The package is straightforward to use: define a Python Enum, declare it as an EnumField in a Marshmallow schema, and the field handles the rest. It supports custom error messages and flexible load/dump behavior. However, the package has been abandoned since August 2019 with no recent updates or maintenance, which may pose compatibility risks with newer Marshmallow or Python versions.
Use it for
- Serialize API responses containing enum values to JSON with readable names or numeric values
- Validate incoming form or API data against a fixed set of enum choices in a schema
- Convert between enum names and values when loading/dumping data in web frameworks
- Define database models with enum fields that need schema-level serialization support
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using Marshmallow and need enum field support in an existing or stable codebase.
The low install friction and permissive license make it a reasonable choice. However, be cautious: the package is unmaintained since 2019. Test compatibility with your Marshmallow and Python versions before adopting it in new projects, and monitor for any breaking changes in future Marshmallow releases.
Install
marshmallow-enum on PyPI
Before you install
Low friction install with a single runtime dependency (marshmallow). However, the package is abandoned—last release was 2019-08-21, over 2550 days ago. No recent maintenance or updates.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it safe for most projects from a licensing standpoint.
Quickstart
pip install marshmallow-enum
from enum import Enum
from marshmallow import Schema
from marshmallow_enum import EnumField
class Color(Enum):
red = 1
green = 2
class MySchema(Schema):
color = EnumField(Color)
schema = MySchema()
schema.dump({'color': Color.red}) # {'color': 'red'}
schema.load({'color': 'red'}) # {'color': Color.red}
Verify before relying
- Whether the package works with current Marshmallow versions (3.x+) despite being unmaintained
- Whether Python 3.10+ Enum changes affect compatibility
- Active community forks or maintained alternatives available
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagemarshmallow |
| Maintenance | Abandoned 2,550 days since the last release |
| First released | |
| Downloads | 7,366,975 / month, #1,749 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: marshmallow_enum-1.5.1-py2.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 › “enum serialization marshmallow”
- marshmallow-enumProvides an Enum field type for Marshmallow schemas, enabling…
- marshmallow-jsonschemaConverts marshmallow schemas into JSON Schema Draft v7 documents,…
- DeepFriedMarshmallowAccelerates Marshmallow schema serialization and deserialization by…
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-jsonschema · marshmallow-union · django-enum · django-enumfields · marshmallow-polyfield · django-choices-field · marshmallow-oneofschema · marshmallow-mongoengine · DeepFriedMarshmallow · marshmallow