Skip to main content

More Future!

For old code written against Python2, plus some tiny useful functions

Recent Changes

December 2022 - No longer points to Python2 modules.

Description

Problem

future or six are hard to use: It is easy to google how to import an object in Python2, or Python3, but finding the full path to the same in these compatibility libraries is difficult.

Solution

All the modules and types required for compatibility are put into the mo-future top-level module so they are easy to find.

Flat namespace

Instead of

    from future.utils import text

you get the same, but without having to discover what sub-module the text is hiding:

    from mo_future import text

Simpler imports

Instead of writing conditional imports like

    try:
        from io import StringIO
    except:
        from StringIO import StringIO

or

    if PY3:
        from io import StringIO
    else:
        from StringIO import StringIO

you can use mo-future:

    from mo_future import StringIO

Metadata

Release files for mo-future 7.689.26311

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mo-future 7.689.26311
File Size Uploaded Provenance Actions
mo_future-7.689.26311.tar.gz 10.8 kB Without provenance Details for mo_future-7.689.26311.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mo-future 7.689.26311
File Interpreter ABI Platform Actions
mo_future-7.689.26311-py3-none-any.whl Python 3 none any Details for mo_future-7.689.26311-py3-none-any.whl

Total release size: 22.3 kB

Release files / mo_future-7.689.26311.tar.gz

Download URL mo_future-7.689.26311.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2903e210d0a57dd8dfdc875f6a07f39190cc4c0dfc205cd2354ad38fdc591276
BLAKE2b-256 checksum
How to use checksums
ba406fd74ad9d3955f7b4f6d4c0634e8f42ac152db7ec833df1f429e7cdf66d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / mo_future-7.689.26311-py3-none-any.whl

Download URL mo_future-7.689.26311-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62ef63b7cc3a2d2dfaf74a6580c3dad679bf6d8876f51755174fdae86ef720ae
BLAKE2b-256 checksum
How to use checksums
678ba7052badd6c7f2e375fc30ea74ab5356411cc3682aa6e652f7c6e6817ded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for mo-future 7.689.26311

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page