PKG-INFO 3.6 KB

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