/lib/sqlalchemy/util/__init__.py

https://gitlab.com/ztane/sqlalchemy · Python · 45 lines · 33 code · 5 blank · 7 comment · 0 complexity · 8d1518148940220fc1de654a73f4077e MD5 · raw file

  1. # util/__init__.py
  2. # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
  3. #
  4. # This module is part of SQLAlchemy and is released under
  5. # the MIT License: http://www.opensource.org/licenses/mit-license.php
  6. from .compat import callable, cmp, reduce, \
  7. threading, py3k, py33, py2k, jython, pypy, cpython, win32, \
  8. pickle, dottedgetter, parse_qsl, namedtuple, next, reraise, \
  9. raise_from_cause, text_type, string_types, int_types, binary_type, \
  10. quote_plus, with_metaclass, print_, itertools_filterfalse, u, ue, b,\
  11. unquote_plus, unquote, b64decode, b64encode, byte_buffer, itertools_filter,\
  12. iterbytes, StringIO, inspect_getargspec
  13. from ._collections import KeyedTuple, ImmutableContainer, immutabledict, \
  14. Properties, OrderedProperties, ImmutableProperties, OrderedDict, \
  15. OrderedSet, IdentitySet, OrderedIdentitySet, column_set, \
  16. column_dict, ordered_column_set, populate_column_dict, unique_list, \
  17. UniqueAppender, PopulateDict, EMPTY_SET, to_list, to_set, \
  18. to_column_set, update_copy, flatten_iterator, \
  19. LRUCache, ScopedRegistry, ThreadLocalRegistry, WeakSequence, \
  20. coerce_generator_arg
  21. from .langhelpers import iterate_attributes, class_hierarchy, \
  22. portable_instancemethod, unbound_method_to_callable, \
  23. getargspec_init, format_argspec_init, format_argspec_plus, \
  24. get_func_kwargs, get_cls_kwargs, decorator, as_interface, \
  25. memoized_property, memoized_instancemethod, md5_hex, \
  26. group_expirable_memoized_property, dependencies, decode_slice, \
  27. monkeypatch_proxied_specials, asbool, bool_or_str, coerce_kw_type,\
  28. duck_type_collection, assert_arg_type, symbol, dictlike_iteritems,\
  29. classproperty, set_creation_order, warn_exception, warn, NoneType,\
  30. constructor_copy, methods_equivalent, chop_traceback, asint,\
  31. generic_repr, counter, PluginLoader, hybridmethod, safe_reraise,\
  32. get_callable_argspec, only_once
  33. from .deprecations import warn_deprecated, warn_pending_deprecation, \
  34. deprecated, pending_deprecation, inject_docstring_text
  35. # things that used to be not always available,
  36. # but are now as of current support Python versions
  37. from collections import defaultdict
  38. from functools import partial
  39. from functools import update_wrapper
  40. from contextlib import contextmanager