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.

65 lines
1.2 KiB

4 years ago
  1. from __future__ import absolute_import, division, print_function
  2. from functools import partial
  3. from . import converters, exceptions, filters, validators
  4. from ._config import get_run_validators, set_run_validators
  5. from ._funcs import asdict, assoc, astuple, evolve, has
  6. from ._make import (
  7. NOTHING,
  8. Attribute,
  9. Factory,
  10. attrib,
  11. attrs,
  12. fields,
  13. fields_dict,
  14. make_class,
  15. validate,
  16. )
  17. __version__ = "18.2.0"
  18. __title__ = "attrs"
  19. __description__ = "Classes Without Boilerplate"
  20. __url__ = "https://www.attrs.org/"
  21. __uri__ = __url__
  22. __doc__ = __description__ + " <" + __uri__ + ">"
  23. __author__ = "Hynek Schlawack"
  24. __email__ = "hs@ox.cx"
  25. __license__ = "MIT"
  26. __copyright__ = "Copyright (c) 2015 Hynek Schlawack"
  27. s = attributes = attrs
  28. ib = attr = attrib
  29. dataclass = partial(attrs, auto_attribs=True) # happy Easter ;)
  30. __all__ = [
  31. "Attribute",
  32. "Factory",
  33. "NOTHING",
  34. "asdict",
  35. "assoc",
  36. "astuple",
  37. "attr",
  38. "attrib",
  39. "attributes",
  40. "attrs",
  41. "converters",
  42. "evolve",
  43. "exceptions",
  44. "fields",
  45. "fields_dict",
  46. "filters",
  47. "get_run_validators",
  48. "has",
  49. "ib",
  50. "make_class",
  51. "s",
  52. "set_run_validators",
  53. "validate",
  54. "validators",
  55. ]