<commit_before>.. _overview:

Overview: Easy, clean, reliable Python 2/3 compatibility
========================================================

``python-future`` is the missing compatibility layer between Python 2 and
Python 3. It allows you to use a single, clean Python 3.x-compatible
codebase to support both Python 2 and Python 3 with minimal overhead.

It provides ``future`` and ``past`` packages with backports and forward ports of
features from Python 3 and 2. It also comes with ``futurize`` and
``pasteurize``, customized 2to3-based scripts that helps you to convert either
Py2 or Py3 code easily to support both Python 2 and 3 in a single clean
Py3-style codebase, module by module.

Notable projects that use ``python-future`` for Python 3/2 compatibility
are `Mezzanine <http://mezzanine.jupo.org/>`_ and `ObsPy
<http://obspy.org>`_.

.. _features:

Features
--------

-   ``future.builtins`` package provides backports and remappings for 19
    builtins with different semantics on Py3 versus Py2

-   ``future.standard_library``, in conjunction with ``future.moves``, provides
    support for importing standard library modules under their Python 3 names

-   ``future.backports`` package provides backports from the Py3.3
    standard library

-   ``past.builtins`` package provides forward-ports of Python 2 types and
    resurrects some Python 2 builtins (to aid with per-module code migrations)

-   ``past.translation`` package supports transparent translation of Python 2
    modules to Python 3 upon import. [This feature is currently in alpha.] 

-   850+ unit tests, including many from the Py3.3 source tree.
<commit_msg>Add Travis badge (v0.12.x maint)<commit_after>.. _overview:

Overview: Easy, clean, reliable Python 2/3 compatibility
========================================================

``python-future`` is the missing compatibility layer between Python 2 and
Python 3. It allows you to use a single, clean Python 3.x-compatible
codebase to support both Python 2 and Python 3 with minimal overhead.

It provides ``future`` and ``past`` packages with backports and forward ports of
features from Python 3 and 2. It also comes with ``futurize`` and
``pasteurize``, customized 2to3-based scripts that helps you to convert either
Py2 or Py3 code easily to support both Python 2 and 3 in a single clean
Py3-style codebase, module by module.

Notable projects that use ``python-future`` for Python 3/2 compatibility
are `Mezzanine <http://mezzanine.jupo.org/>`_ and `ObsPy
<http://obspy.org>`_.

.. _features:

Features
--------

.. image:: https://travis-ci.org/PythonCharmers/python-future.svg?branch=v0.12.x
       :target: https://travis-ci.org/PythonCharmers/python-future

-   ``future.builtins`` package provides backports and remappings for 19
    builtins with different semantics on Py3 versus Py2

-   ``future.standard_library``, in conjunction with ``future.moves``, provides
    support for importing standard library modules under their Python 3 names

-   ``future.backports`` package provides backports from the Py3.3
    standard library

-   ``past.builtins`` package provides forward-ports of Python 2 types and
    resurrects some Python 2 builtins (to aid with per-module code migrations)

-   ``past.translation`` package supports transparent translation of Python 2
    modules to Python 3 upon import. [This feature is currently in alpha.] 

-   850+ unit tests, including many from the Py3.3 source tree.

{'fraction_non_alphanumeric': 0.11582900057770075, 'fraction_numerical': 0.021374927787406125, 'mean_word_length': 4.207518796992481, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '554179', 'n_tokens_mistral': 993, 'n_tokens_neox': 907, 'n_words': 422}