Debian Codegraph @

cloup/constraints/__init__.py

raw
1 """
2 Constraints for parameter groups.
3
4 .. versionadded:: v0.5.0
5 """
6
7 from ._conditional import If
8 from ._core import (
9 AcceptAtMost,
10 AcceptBetween,
11 And,
12 Constraint,
13 ErrorFmt,
14 ErrorRephraser,
15 HelpRephraser,
16 Operator,
17 Or,
18 Rephraser,
19 RequireAtLeast,
20 RequireExactly,
21 WrapperConstraint,
22 accept_none,
23 all_or_none,
24 mutually_exclusive,
25 require_all,
26 require_any,
27 require_one,
28 )
29 from ._support import (
30 BoundConstraintSpec, ConstraintMixin, constrained_params, constraint
31 )
32 from .conditions import AllSet, AnySet, Equal, IsSet, Not
33 from .exceptions import ConstraintViolated, UnsatisfiableConstraint
34
35 __all__ = [
36 "AcceptAtMost",
37 "AcceptBetween",
38 "AllSet",
39 "And",
40 "AnySet",
41 "BoundConstraintSpec",
42 "Constraint",
43 "ConstraintMixin",
44 "ConstraintViolated",
45 "Equal",
46 "ErrorFmt",
47 "ErrorRephraser",
48 "HelpRephraser",
49 "If",
50 "IsSet",
51 "Not",
52 "Operator",
53 "Or",
54 "Rephraser",
55 "RequireAtLeast",
56 "RequireExactly",
57 "UnsatisfiableConstraint",
58 "WrapperConstraint",
59 "accept_none",
60 "all_or_none",
61 "constrained_params",
62 "constraint",
63 "mutually_exclusive",
64 "require_all",
65 "require_any",
66 "require_one",
67 ]