You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
3.7 KiB

4 years ago
  1. Metadata-Version: 2.1
  2. Name: multidict
  3. Version: 4.5.2
  4. Summary: multidict implementation
  5. Home-page: https://github.com/aio-libs/multidict
  6. Author: Andrew Svetlov
  7. Author-email: andrew.svetlov@gmail.com
  8. License: Apache 2
  9. Project-URL: Chat: Gitter, https://gitter.im/aio-libs/Lobby
  10. Project-URL: CI: Shippable, https://app.shippable.com/github/aio-libs/multidict
  11. Project-URL: GitHub: issues, https://github.com/aio-libs/multidict/issues
  12. Project-URL: CI: Circle, https://circleci.com/gh/aio-libs/multidict
  13. Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/multidict
  14. Project-URL: CI: AppVeyor, https://ci.appveyor.com/project/asvetlov/multidict
  15. Project-URL: GitHub: repo, https://github.com/aio-libs/multidict
  16. Project-URL: Docs: RTD, https://multidict.readthedocs.io
  17. Project-URL: CI: Travis, https://travis-ci.com/aio-libs/multidict
  18. Platform: UNKNOWN
  19. Classifier: License :: OSI Approved :: Apache Software License
  20. Classifier: Intended Audience :: Developers
  21. Classifier: Programming Language :: Python
  22. Classifier: Programming Language :: Python :: 3
  23. Classifier: Programming Language :: Python :: 3.4
  24. Classifier: Programming Language :: Python :: 3.5
  25. Classifier: Programming Language :: Python :: 3.6
  26. Classifier: Programming Language :: Python :: 3.7
  27. Classifier: Development Status :: 5 - Production/Stable
  28. Requires-Python: >=3.4.1
  29. =========
  30. multidict
  31. =========
  32. .. image:: https://img.shields.io/pypi/v/multidict.svg
  33. :target: https://pypi.org/project/multidict
  34. .. image:: https://readthedocs.org/projects/multidict/badge/?version=latest
  35. :target: http://multidict.readthedocs.org/en/latest/?badge=latest
  36. .. image:: https://img.shields.io/travis-ci/com/aio-libs/multidict/master.svg
  37. :align: right
  38. :target: http://travis-ci.com/aio-libs/multidict
  39. .. image:: https://img.shields.io/appveyor/ci/aio-libs/multidict/master.svg?label=Windows%20build%20%40%20Appveyor
  40. :align: right
  41. :target: https://ci.appveyor.com/project/aio-libs/multidict/branch/master
  42. .. image:: https://img.shields.io/pypi/pyversions/multidict.svg
  43. :target: https://pypi.org/project/multidict
  44. .. image:: https://codecov.io/gh/aio-libs/multidict/branch/master/graph/badge.svg
  45. :target: https://codecov.io/gh/aio-libs/multidict
  46. :alt: Coverage metrics
  47. .. image:: https://badges.gitter.im/Join%20Chat.svg
  48. :target: https://gitter.im/aio-libs/Lobby
  49. :alt: Chat on Gitter
  50. Multidict is dict-like collection of *key-value pairs* where key
  51. might be occurred more than once in the container.
  52. Introduction
  53. ------------
  54. *HTTP Headers* and *URL query string* require specific data structure:
  55. *multidict*. It behaves mostly like a regular ``dict`` but it may have
  56. several *values* for the same *key* and *preserves insertion ordering*.
  57. The *key* is ``str`` (or ``istr`` for case-insensitive dictionaries).
  58. ``multidict`` has four multidict classes:
  59. ``MultiDict``, ``MultiDictProxy``, ``CIMultiDict``
  60. and ``CIMultiDictProxy``.
  61. Immutable proxies (``MultiDictProxy`` and
  62. ``CIMultiDictProxy``) provide a dynamic view for the
  63. proxied multidict, the view reflects underlying collection changes. They
  64. implement the ``collections.abc.Mapping`` interface.
  65. Regular mutable (``MultiDict`` and ``CIMultiDict``) classes
  66. implement ``collections.abc.MutableMapping`` and allows to change
  67. their own content.
  68. *Case insensitive* (``CIMultiDict`` and
  69. ``CIMultiDictProxy``) ones assume the *keys* are case
  70. insensitive, e.g.::
  71. >>> dct = CIMultiDict(key='val')
  72. >>> 'Key' in dct
  73. True
  74. >>> dct['Key']
  75. 'val'
  76. *Keys* should be ``str`` or ``istr`` instances.
  77. The library has optional Cython_ optimization for sake of speed.
  78. License
  79. -------
  80. Apache 2
  81. .. _aiohttp: https://github.com/KeepSafe/aiohttp
  82. .. _Cython: http://cython.org/
  83. Changelog
  84. ---------
  85. See `RTD page <http://multidict.readthedocs.org/en/latest/changes.html>`_.