METADATA 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Metadata-Version: 2.1
  2. Name: future
  3. Version: 0.18.3
  4. Summary: Clean single-source support for Python 3 and 2
  5. Home-page: https://python-future.org
  6. Author: Ed Schofield
  7. Author-email: ed@pythoncharmers.com
  8. License: MIT
  9. Keywords: future past python3 migration futurize backport six 2to3 modernize pasteurize 3to2
  10. Platform: UNKNOWN
  11. Classifier: Programming Language :: Python
  12. Classifier: Programming Language :: Python :: 2
  13. Classifier: Programming Language :: Python :: 2.6
  14. Classifier: Programming Language :: Python :: 2.7
  15. Classifier: Programming Language :: Python :: 3
  16. Classifier: Programming Language :: Python :: 3.3
  17. Classifier: Programming Language :: Python :: 3.4
  18. Classifier: Programming Language :: Python :: 3.5
  19. Classifier: Programming Language :: Python :: 3.6
  20. Classifier: Programming Language :: Python :: 3.7
  21. Classifier: License :: OSI Approved
  22. Classifier: License :: OSI Approved :: MIT License
  23. Classifier: Development Status :: 4 - Beta
  24. Classifier: Intended Audience :: Developers
  25. Requires-Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*
  26. future: Easy, safe support for Python 2/3 compatibility
  27. =======================================================
  28. ``future`` is the missing compatibility layer between Python 2 and Python
  29. 3. It allows you to use a single, clean Python 3.x-compatible codebase to
  30. support both Python 2 and Python 3 with minimal overhead.
  31. It is designed to be used as follows::
  32. from __future__ import (absolute_import, division,
  33. print_function, unicode_literals)
  34. from builtins import (
  35. bytes, dict, int, list, object, range, str,
  36. ascii, chr, hex, input, next, oct, open,
  37. pow, round, super,
  38. filter, map, zip)
  39. followed by predominantly standard, idiomatic Python 3 code that then runs
  40. similarly on Python 2.6/2.7 and Python 3.3+.
  41. The imports have no effect on Python 3. On Python 2, they shadow the
  42. corresponding builtins, which normally have different semantics on Python 3
  43. versus 2, to provide their Python 3 semantics.
  44. Standard library reorganization
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. ``future`` supports the standard library reorganization (PEP 3108) through the
  47. following Py3 interfaces:
  48. >>> # Top-level packages with Py3 names provided on Py2:
  49. >>> import html.parser
  50. >>> import queue
  51. >>> import tkinter.dialog
  52. >>> import xmlrpc.client
  53. >>> # etc.
  54. >>> # Aliases provided for extensions to existing Py2 module names:
  55. >>> from future.standard_library import install_aliases
  56. >>> install_aliases()
  57. >>> from collections import Counter, OrderedDict # backported to Py2.6
  58. >>> from collections import UserDict, UserList, UserString
  59. >>> import urllib.request
  60. >>> from itertools import filterfalse, zip_longest
  61. >>> from subprocess import getoutput, getstatusoutput
  62. Automatic conversion
  63. --------------------
  64. An included script called `futurize
  65. <http://python-future.org/automatic_conversion.html>`_ aids in converting
  66. code (from either Python 2 or Python 3) to code compatible with both
  67. platforms. It is similar to ``python-modernize`` but goes further in
  68. providing Python 3 compatibility through the use of the backported types
  69. and builtin functions in ``future``.
  70. Documentation
  71. -------------
  72. See: http://python-future.org
  73. Credits
  74. -------
  75. :Author: Ed Schofield, Jordan M. Adler, et al
  76. :Sponsor: Python Charmers Pty Ltd, Australia, and Python Charmers Pte
  77. Ltd, Singapore. http://pythoncharmers.com
  78. :Others: See docs/credits.rst or http://python-future.org/credits.html
  79. Licensing
  80. ---------
  81. Copyright 2013-2019 Python Charmers Pty Ltd, Australia.
  82. The software is distributed under an MIT licence. See LICENSE.txt.