/lib/sqlalchemy/util/__init__.py

https://github.com/sqlalchemy/sqlalchemy · Python · 162 lines · 153 code · 3 blank · 6 comment · 0 complexity · b3703710d03ec9d36670a08419d4cead MD5 · raw file

  1. # util/__init__.py
  2. # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
  3. # <see AUTHORS file>
  4. #
  5. # This module is part of SQLAlchemy and is released under
  6. # the MIT License: http://www.opensource.org/licenses/mit-license.php
  7. from collections import defaultdict # noqa
  8. from contextlib import contextmanager # noqa
  9. from functools import partial # noqa
  10. from functools import update_wrapper # noqa
  11. from ._collections import coerce_generator_arg # noqa
  12. from ._collections import coerce_to_immutabledict # noqa
  13. from ._collections import collections_abc # noqa
  14. from ._collections import column_dict # noqa
  15. from ._collections import column_set # noqa
  16. from ._collections import EMPTY_DICT # noqa
  17. from ._collections import EMPTY_SET # noqa
  18. from ._collections import FacadeDict # noqa
  19. from ._collections import flatten_iterator # noqa
  20. from ._collections import has_dupes # noqa
  21. from ._collections import has_intersection # noqa
  22. from ._collections import IdentitySet # noqa
  23. from ._collections import ImmutableContainer # noqa
  24. from ._collections import immutabledict # noqa
  25. from ._collections import ImmutableProperties # noqa
  26. from ._collections import LRUCache # noqa
  27. from ._collections import ordered_column_set # noqa
  28. from ._collections import OrderedDict # noqa
  29. from ._collections import OrderedIdentitySet # noqa
  30. from ._collections import OrderedProperties # noqa
  31. from ._collections import OrderedSet # noqa
  32. from ._collections import PopulateDict # noqa
  33. from ._collections import Properties # noqa
  34. from ._collections import ScopedRegistry # noqa
  35. from ._collections import ThreadLocalRegistry # noqa
  36. from ._collections import to_column_set # noqa
  37. from ._collections import to_list # noqa
  38. from ._collections import to_set # noqa
  39. from ._collections import unique_list # noqa
  40. from ._collections import UniqueAppender # noqa
  41. from ._collections import update_copy # noqa
  42. from ._collections import WeakPopulateDict # noqa
  43. from ._collections import WeakSequence # noqa
  44. from .compat import ABC # noqa
  45. from .compat import arm # noqa
  46. from .compat import b # noqa
  47. from .compat import b64decode # noqa
  48. from .compat import b64encode # noqa
  49. from .compat import binary_type # noqa
  50. from .compat import byte_buffer # noqa
  51. from .compat import callable # noqa
  52. from .compat import cmp # noqa
  53. from .compat import cpython # noqa
  54. from .compat import decode_backslashreplace # noqa
  55. from .compat import dottedgetter # noqa
  56. from .compat import has_refcount_gc # noqa
  57. from .compat import inspect_getfullargspec # noqa
  58. from .compat import int_types # noqa
  59. from .compat import iterbytes # noqa
  60. from .compat import itertools_filter # noqa
  61. from .compat import itertools_filterfalse # noqa
  62. from .compat import namedtuple # noqa
  63. from .compat import next # noqa
  64. from .compat import osx # noqa
  65. from .compat import parse_qsl # noqa
  66. from .compat import perf_counter # noqa
  67. from .compat import pickle # noqa
  68. from .compat import print_ # noqa
  69. from .compat import py2k # noqa
  70. from .compat import py36 # noqa
  71. from .compat import py37 # noqa
  72. from .compat import py3k # noqa
  73. from .compat import quote_plus # noqa
  74. from .compat import raise_ # noqa
  75. from .compat import raise_from_cause # noqa
  76. from .compat import reduce # noqa
  77. from .compat import reraise # noqa
  78. from .compat import string_types # noqa
  79. from .compat import StringIO # noqa
  80. from .compat import text_type # noqa
  81. from .compat import threading # noqa
  82. from .compat import timezone # noqa
  83. from .compat import TYPE_CHECKING # noqa
  84. from .compat import u # noqa
  85. from .compat import ue # noqa
  86. from .compat import unquote # noqa
  87. from .compat import unquote_plus # noqa
  88. from .compat import win32 # noqa
  89. from .compat import with_metaclass # noqa
  90. from .compat import zip_longest # noqa
  91. from .concurrency import asyncio # noqa
  92. from .concurrency import await_fallback # noqa
  93. from .concurrency import await_only # noqa
  94. from .concurrency import greenlet_spawn # noqa
  95. from .deprecations import deprecated # noqa
  96. from .deprecations import deprecated_20 # noqa
  97. from .deprecations import deprecated_20_cls # noqa
  98. from .deprecations import deprecated_cls # noqa
  99. from .deprecations import deprecated_params # noqa
  100. from .deprecations import inject_docstring_text # noqa
  101. from .deprecations import moved_20 # noqa
  102. from .deprecations import SQLALCHEMY_WARN_20 # noqa
  103. from .deprecations import warn_deprecated # noqa
  104. from .deprecations import warn_deprecated_20 # noqa
  105. from .langhelpers import add_parameter_text # noqa
  106. from .langhelpers import as_interface # noqa
  107. from .langhelpers import asbool # noqa
  108. from .langhelpers import asint # noqa
  109. from .langhelpers import assert_arg_type # noqa
  110. from .langhelpers import attrsetter # noqa
  111. from .langhelpers import bool_or_str # noqa
  112. from .langhelpers import chop_traceback # noqa
  113. from .langhelpers import class_hierarchy # noqa
  114. from .langhelpers import classproperty # noqa
  115. from .langhelpers import clsname_as_plain_name # noqa
  116. from .langhelpers import coerce_kw_type # noqa
  117. from .langhelpers import constructor_copy # noqa
  118. from .langhelpers import constructor_key # noqa
  119. from .langhelpers import counter # noqa
  120. from .langhelpers import decode_slice # noqa
  121. from .langhelpers import decorator # noqa
  122. from .langhelpers import dictlike_iteritems # noqa
  123. from .langhelpers import duck_type_collection # noqa
  124. from .langhelpers import ellipses_string # noqa
  125. from .langhelpers import EnsureKWArgType # noqa
  126. from .langhelpers import format_argspec_init # noqa
  127. from .langhelpers import format_argspec_plus # noqa
  128. from .langhelpers import generic_repr # noqa
  129. from .langhelpers import get_callable_argspec # noqa
  130. from .langhelpers import get_cls_kwargs # noqa
  131. from .langhelpers import get_func_kwargs # noqa
  132. from .langhelpers import getargspec_init # noqa
  133. from .langhelpers import HasMemoized # noqa
  134. from .langhelpers import hybridmethod # noqa
  135. from .langhelpers import hybridproperty # noqa
  136. from .langhelpers import iterate_attributes # noqa
  137. from .langhelpers import map_bits # noqa
  138. from .langhelpers import md5_hex # noqa
  139. from .langhelpers import memoized_instancemethod # noqa
  140. from .langhelpers import memoized_property # noqa
  141. from .langhelpers import MemoizedSlots # noqa
  142. from .langhelpers import methods_equivalent # noqa
  143. from .langhelpers import monkeypatch_proxied_specials # noqa
  144. from .langhelpers import NoneType # noqa
  145. from .langhelpers import only_once # noqa
  146. from .langhelpers import PluginLoader # noqa
  147. from .langhelpers import portable_instancemethod # noqa
  148. from .langhelpers import preload_module # noqa
  149. from .langhelpers import preloaded # noqa
  150. from .langhelpers import quoted_token_parser # noqa
  151. from .langhelpers import safe_reraise # noqa
  152. from .langhelpers import set_creation_order # noqa
  153. from .langhelpers import string_or_unprintable # noqa
  154. from .langhelpers import symbol # noqa
  155. from .langhelpers import unbound_method_to_callable # noqa
  156. from .langhelpers import warn # noqa
  157. from .langhelpers import warn_exception # noqa
  158. from .langhelpers import warn_limited # noqa
  159. from .langhelpers import wrap_callable # noqa