PKG-INFO 4.0 KB

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