mo-future
More future! Make Python 2/3 compatibility a bit easier
What it is and what it does
mo-future is a Python 2/3 compatibility shim designed to simplify migration of legacy Python 2 code to Python 3. Rather than hunting through sub-modules of larger compatibility libraries like `future` or `six`, it flattens all commonly needed compatibility imports into a single top-level `mo_future` namespace. This eliminates the need for conditional imports or try-except blocks when accessing types like StringIO or text across Python versions.
The package targets codebases that still carry Python 2 logic but need to run on modern Python 3 versions. It has been marked Production/Stable and supports Python 3.8 through 3.13, though it no longer points to Python 2 modules as of December 2022. With no runtime dependencies, it adds minimal friction to any project.
Use it for:
- Migrating legacy Python 2 codebases to Python 3 without rewriting all compatibility imports at once
- Simplifying StringIO imports that differ between Python 2 and 3 standard libraries
- Centralizing text type handling across Python versions in a single import statement
- Reducing boilerplate in projects that still contain Python 2-era code patterns
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a flat-namespace compatibility layer for Python 2/3 code migration, consolidating commonly needed imports into a single `mo_future` module to avoid discovering them across multiple sub-modules.
Yes, if you are actively maintaining Python 2 legacy code that needs to run on Python 3. The flat namespace genuinely simplifies compatibility imports compared to larger libraries. However, the aging maintenance status (425 days since last release) and small user base (2 GitHub stars) suggest this is a niche tool—if you are starting a new project or have already fully migrated to Python 3, it offers no value.
Install
mo-future on PyPI
pip
pip install mo-futureuv
uv add mo-futurepoetry
poetry add mo-futureInstalling mo-future
Before you install
Low install friction with no runtime dependencies. Maintenance status is aging—last release was 425 days ago, though the repository remains active with a recent commit on 2025-06-15.
License in practice
Licensed under MPL 2.0 (copyleft). Users must comply with copyleft obligations if they modify and distribute the package; proprietary projects using it unmodified face no additional restrictions.
Quickstart
pip install mo-future
from mo_future import StringIO, text
# Use StringIO and text type directly without version checks
output = StringIO()
output.write(text("hello"))
Verify before relying
- Whether the package still actively maintains Python 2 compatibility code or has fully migrated to Python 3-only internals as of December 2022
- Specific list of all compatibility types and utilities exposed in the mo_future namespace beyond StringIO and text
Package facts
| License | MPL 2.0 (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 425 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 342,902/month — #7,391 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mo_future-7.685.25166-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
futureProvides Python 3 syntax and semantics on…
permissive · top 1,000 on PyPI
mo-importsProvides patterns to resolve circular module…
copyleft · top 15,000 on PyPI
reorder-python-importsAutomatically reorders Python imports into a…
permissive · top 15,000 on PyPI
langchain-databricksConnects LangChain applications to Databricks…
permissive · top 15,000 on PyPI
sqlite-migrateA compatibility shim that re-exports the…
permissive · top 15,000 on PyPI
snowflake._legacyProvides temporary backward compatibility for…
permissive · top 5,000 on PyPI
lia-weblia-web is a deprecated shim package that…
permissive · top 15,000 on PyPI
eightEight provides a compatibility layer that lets…
permissive · top 15,000 on PyPI
sklearn-compatProvides backward-compatible wrappers for…
permissive · top 5,000 on PyPI