__init__.py 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # util/__init__.py
  2. # Copyright (C) 2005-2025 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: https://www.opensource.org/licenses/mit-license.php
  7. from collections import defaultdict as defaultdict
  8. from functools import partial as partial
  9. from functools import update_wrapper as update_wrapper
  10. from . import preloaded as preloaded
  11. from ._collections import coerce_generator_arg as coerce_generator_arg
  12. from ._collections import coerce_to_immutabledict as coerce_to_immutabledict
  13. from ._collections import column_dict as column_dict
  14. from ._collections import column_set as column_set
  15. from ._collections import EMPTY_DICT as EMPTY_DICT
  16. from ._collections import EMPTY_SET as EMPTY_SET
  17. from ._collections import FacadeDict as FacadeDict
  18. from ._collections import flatten_iterator as flatten_iterator
  19. from ._collections import has_dupes as has_dupes
  20. from ._collections import has_intersection as has_intersection
  21. from ._collections import IdentitySet as IdentitySet
  22. from ._collections import immutabledict as immutabledict
  23. from ._collections import LRUCache as LRUCache
  24. from ._collections import merge_lists_w_ordering as merge_lists_w_ordering
  25. from ._collections import NONE_SET as NONE_SET
  26. from ._collections import ordered_column_set as ordered_column_set
  27. from ._collections import OrderedDict as OrderedDict
  28. from ._collections import OrderedIdentitySet as OrderedIdentitySet
  29. from ._collections import OrderedProperties as OrderedProperties
  30. from ._collections import OrderedSet as OrderedSet
  31. from ._collections import PopulateDict as PopulateDict
  32. from ._collections import Properties as Properties
  33. from ._collections import ReadOnlyContainer as ReadOnlyContainer
  34. from ._collections import ReadOnlyProperties as ReadOnlyProperties
  35. from ._collections import ScopedRegistry as ScopedRegistry
  36. from ._collections import sort_dictionary as sort_dictionary
  37. from ._collections import ThreadLocalRegistry as ThreadLocalRegistry
  38. from ._collections import to_column_set as to_column_set
  39. from ._collections import to_list as to_list
  40. from ._collections import to_set as to_set
  41. from ._collections import unique_list as unique_list
  42. from ._collections import UniqueAppender as UniqueAppender
  43. from ._collections import update_copy as update_copy
  44. from ._collections import WeakPopulateDict as WeakPopulateDict
  45. from ._collections import WeakSequence as WeakSequence
  46. from .compat import anext_ as anext_
  47. from .compat import arm as arm
  48. from .compat import b as b
  49. from .compat import b64decode as b64decode
  50. from .compat import b64encode as b64encode
  51. from .compat import cmp as cmp
  52. from .compat import cpython as cpython
  53. from .compat import dataclass_fields as dataclass_fields
  54. from .compat import decode_backslashreplace as decode_backslashreplace
  55. from .compat import dottedgetter as dottedgetter
  56. from .compat import has_refcount_gc as has_refcount_gc
  57. from .compat import inspect_getfullargspec as inspect_getfullargspec
  58. from .compat import is64bit as is64bit
  59. from .compat import local_dataclass_fields as local_dataclass_fields
  60. from .compat import osx as osx
  61. from .compat import py310 as py310
  62. from .compat import py311 as py311
  63. from .compat import py312 as py312
  64. from .compat import py313 as py313
  65. from .compat import py314 as py314
  66. from .compat import py38 as py38
  67. from .compat import py39 as py39
  68. from .compat import pypy as pypy
  69. from .compat import win32 as win32
  70. from .concurrency import await_fallback as await_fallback
  71. from .concurrency import await_only as await_only
  72. from .concurrency import greenlet_spawn as greenlet_spawn
  73. from .concurrency import is_exit_exception as is_exit_exception
  74. from .deprecations import became_legacy_20 as became_legacy_20
  75. from .deprecations import deprecated as deprecated
  76. from .deprecations import deprecated_cls as deprecated_cls
  77. from .deprecations import deprecated_params as deprecated_params
  78. from .deprecations import moved_20 as moved_20
  79. from .deprecations import warn_deprecated as warn_deprecated
  80. from .langhelpers import add_parameter_text as add_parameter_text
  81. from .langhelpers import as_interface as as_interface
  82. from .langhelpers import asbool as asbool
  83. from .langhelpers import asint as asint
  84. from .langhelpers import assert_arg_type as assert_arg_type
  85. from .langhelpers import attrsetter as attrsetter
  86. from .langhelpers import bool_or_str as bool_or_str
  87. from .langhelpers import chop_traceback as chop_traceback
  88. from .langhelpers import class_hierarchy as class_hierarchy
  89. from .langhelpers import classproperty as classproperty
  90. from .langhelpers import clsname_as_plain_name as clsname_as_plain_name
  91. from .langhelpers import coerce_kw_type as coerce_kw_type
  92. from .langhelpers import constructor_copy as constructor_copy
  93. from .langhelpers import constructor_key as constructor_key
  94. from .langhelpers import counter as counter
  95. from .langhelpers import create_proxy_methods as create_proxy_methods
  96. from .langhelpers import decode_slice as decode_slice
  97. from .langhelpers import decorator as decorator
  98. from .langhelpers import dictlike_iteritems as dictlike_iteritems
  99. from .langhelpers import duck_type_collection as duck_type_collection
  100. from .langhelpers import ellipses_string as ellipses_string
  101. from .langhelpers import EnsureKWArg as EnsureKWArg
  102. from .langhelpers import FastIntFlag as FastIntFlag
  103. from .langhelpers import format_argspec_init as format_argspec_init
  104. from .langhelpers import format_argspec_plus as format_argspec_plus
  105. from .langhelpers import generic_fn_descriptor as generic_fn_descriptor
  106. from .langhelpers import generic_repr as generic_repr
  107. from .langhelpers import get_annotations as get_annotations
  108. from .langhelpers import get_callable_argspec as get_callable_argspec
  109. from .langhelpers import get_cls_kwargs as get_cls_kwargs
  110. from .langhelpers import get_func_kwargs as get_func_kwargs
  111. from .langhelpers import getargspec_init as getargspec_init
  112. from .langhelpers import has_compiled_ext as has_compiled_ext
  113. from .langhelpers import HasMemoized as HasMemoized
  114. from .langhelpers import (
  115. HasMemoized_ro_memoized_attribute as HasMemoized_ro_memoized_attribute,
  116. )
  117. from .langhelpers import hybridmethod as hybridmethod
  118. from .langhelpers import hybridproperty as hybridproperty
  119. from .langhelpers import inject_docstring_text as inject_docstring_text
  120. from .langhelpers import iterate_attributes as iterate_attributes
  121. from .langhelpers import map_bits as map_bits
  122. from .langhelpers import md5_hex as md5_hex
  123. from .langhelpers import memoized_instancemethod as memoized_instancemethod
  124. from .langhelpers import memoized_property as memoized_property
  125. from .langhelpers import MemoizedSlots as MemoizedSlots
  126. from .langhelpers import method_is_overridden as method_is_overridden
  127. from .langhelpers import methods_equivalent as methods_equivalent
  128. from .langhelpers import (
  129. monkeypatch_proxied_specials as monkeypatch_proxied_specials,
  130. )
  131. from .langhelpers import non_memoized_property as non_memoized_property
  132. from .langhelpers import NoneType as NoneType
  133. from .langhelpers import only_once as only_once
  134. from .langhelpers import (
  135. parse_user_argument_for_enum as parse_user_argument_for_enum,
  136. )
  137. from .langhelpers import PluginLoader as PluginLoader
  138. from .langhelpers import portable_instancemethod as portable_instancemethod
  139. from .langhelpers import quoted_token_parser as quoted_token_parser
  140. from .langhelpers import ro_memoized_property as ro_memoized_property
  141. from .langhelpers import ro_non_memoized_property as ro_non_memoized_property
  142. from .langhelpers import rw_hybridproperty as rw_hybridproperty
  143. from .langhelpers import safe_reraise as safe_reraise
  144. from .langhelpers import set_creation_order as set_creation_order
  145. from .langhelpers import string_or_unprintable as string_or_unprintable
  146. from .langhelpers import symbol as symbol
  147. from .langhelpers import TypingOnly as TypingOnly
  148. from .langhelpers import (
  149. unbound_method_to_callable as unbound_method_to_callable,
  150. )
  151. from .langhelpers import walk_subclasses as walk_subclasses
  152. from .langhelpers import warn as warn
  153. from .langhelpers import warn_exception as warn_exception
  154. from .langhelpers import warn_limited as warn_limited
  155. from .langhelpers import wrap_callable as wrap_callable
  156. from .preloaded import preload_module as preload_module
  157. from .typing import is_non_string_iterable as is_non_string_iterable