__init__.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # SPDX-License-Identifier: MIT
  2. from attr import (
  3. NOTHING,
  4. Attribute,
  5. AttrsInstance,
  6. Factory,
  7. _make_getattr,
  8. assoc,
  9. cmp_using,
  10. define,
  11. evolve,
  12. field,
  13. fields,
  14. fields_dict,
  15. frozen,
  16. has,
  17. make_class,
  18. mutable,
  19. resolve_types,
  20. validate,
  21. )
  22. from attr._next_gen import asdict, astuple
  23. from . import converters, exceptions, filters, setters, validators
  24. __all__ = [
  25. "__author__",
  26. "__copyright__",
  27. "__description__",
  28. "__doc__",
  29. "__email__",
  30. "__license__",
  31. "__title__",
  32. "__url__",
  33. "__version__",
  34. "__version_info__",
  35. "asdict",
  36. "assoc",
  37. "astuple",
  38. "Attribute",
  39. "AttrsInstance",
  40. "cmp_using",
  41. "converters",
  42. "define",
  43. "evolve",
  44. "exceptions",
  45. "Factory",
  46. "field",
  47. "fields_dict",
  48. "fields",
  49. "filters",
  50. "frozen",
  51. "has",
  52. "make_class",
  53. "mutable",
  54. "NOTHING",
  55. "resolve_types",
  56. "setters",
  57. "validate",
  58. "validators",
  59. ]
  60. __getattr__ = _make_getattr(__name__)