enum-compat
enum/enum34 compatibility package
Decision gist · record as of 2026-08-14
No. The package is abandoned, unmaintained since 2019-10-14, and its own documentation recommends against using it in favor of direct conditional dependency syntax. Modern Python versions have enum built-in, and Python 2.x is end-of-life. If you are supporting legacy Python, use conditional dependencies directly in your project's requirements rather than this shim.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only useful on Python versions older than 3.4; on Python 3.4+ it has no effect.
- Python 2.6, 2.7, and 3.3 are end-of-life.
- Installation is frictionless with no runtime dependencies, but the package has been abandoned since 2019-10-14 and has received no updates in 2496 days.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions.
last release 2019-10-14 (2496 days) · last repo commit 2019-10-14 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,856,661 downloads/mo, #1,686 on PyPI
Alternatives
Verify before relying
# In requirements.txt or setup.py:
# enum-compat # or use the recommended approach:
# enum34; python_version < "3.4"
import enum
Color = enum.Enum('Color', 'RED GREEN BLUE')- Whether enum34 itself remains safe and maintained for legacy Python environments
- Current compatibility with modern Python tooling and dependency resolvers
- Whether any security issues exist in enum34 that would affect users of this package
What it is and what it does
enum-compat is a virtual package designed to conditionally install enum34 on Python versions older than 3.4, where the enum module was not yet part of the standard library. On Python 3.4 and later, the package does nothing—it is a no-op that allows a single dependency declaration to work across multiple Python versions.
The package's own documentation explicitly recommends against using it, suggesting instead that you directly declare `'enum34; python_version < "3.4"'` as a conditional dependency in your own code. This is a legacy tool whose primary value is historical: it was useful when Python 2.6, 2.7, and early 3.x versions were still in active use, but those versions are now end-of-life and the package itself has not been maintained since 2019-10-14.
Use it for
- Maintaining legacy Python 2.6 or 2.7 codebases that need enum support without explicit version-gated dependencies
- Bridging older projects to Python 3.3 where enum was not yet standard
- Simplifying dependency declarations in projects that must support a wide range of Python versions
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned, unmaintained since 2019-10-14, and its own documentation recommends against using it in favor of direct conditional dependency syntax. Modern Python versions have enum built-in, and Python 2.x is end-of-life. If you are supporting legacy Python, use conditional dependencies directly in your project's requirements rather than this shim.
Install
enum-compat on PyPI
Before you install
Installation is frictionless with no runtime dependencies, but the package has been abandoned since 2019-10-14 and has received no updates in 2496 days. It is only relevant for Python versions that are themselves end-of-life.
Only useful on Python versions older than 3.4; on Python 3.4+ it has no effect. Python 2.6, 2.7, and 3.3 are end-of-life.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions.
Quickstart
# In requirements.txt or setup.py:
# enum-compat # or use the recommended approach:
# enum34; python_version < "3.4"
import enum
Color = enum.Enum('Color', 'RED GREEN BLUE')
Verify before relying
- Whether enum34 itself remains safe and maintained for legacy Python environments
- Current compatibility with modern Python tooling and dependency resolvers
- Whether any security issues exist in enum34 that would affect users of this package
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,496 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,856,661 / month, #1,686 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Software Development :: Libraries |
Evidence: enum_compat-0.0.3-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 compatibility python 2”
- enum-compatConditionally installs enum34 on Python versions older than 3.4; on…
- faker-enumAdds enum value generation to the Faker library, allowing you to…
- marshmallow-enumProvides an Enum field type for Marshmallow schemas, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also enum34 · types-enum34 · backports.strenum · conditional · future · parse-type · qualname · iso4217 · legacy-cgi · omnibase-compat