Beispiel #1
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR1": EnviType.bool(is_ok=["True"]),
         "VAR2": EnviType.bool(is_ok=["true"]),
         "VAR3": EnviType.bool(is_ok=["True"]),
         "VAR4": EnviType.bool(is_ok=["true"]),
         "VAR5": EnviType.bool(is_ok=["true", "True"]),
     }
Beispiel #2
0
    class EnviBridge(EnviManager):
        VAR = EnviType.bool()

        def callable(self):
            return "callable"

        @classmethod
        def callable2(cls):
            return "callable2"
Beispiel #3
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.string(required=False, default="test"),
     }
Beispiel #4
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.string(required=True),
     }
Beispiel #5
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.generic(cast=json.loads),
     }
Beispiel #6
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.integer(validate=lower_than_10),
     }
Beispiel #7
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.generic(lambda x: x.upper()),
     }
Beispiel #8
0
 class EnviBridge(EnviManager):
     VAR = EnviType.string(required=True)
Beispiel #9
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR1": EnviType.string(),
     }
Beispiel #10
0
 class EnviBridge(EnviManager):
     VAR = EnviType.float()
Beispiel #11
0
 class EnviBridge(EnviManager):
     VAR1 = EnviType.string()
Beispiel #12
0
 class EnviBridgeInheriting(EnviBridge):
     VAR1 = EnviType.bool()
     VAR2 = EnviType.bool()
Beispiel #13
0
 class EnviBridge(EnviManager):
     VAR = EnviType.integer()
Beispiel #14
0
 class EnviBridge(EnviManager):
     VAR1 = EnviType.bool(is_ok=["True"])
     VAR2 = EnviType.bool(is_ok=["true"])
     VAR3 = EnviType.bool(is_ok=["True"])
     VAR4 = EnviType.bool(is_ok=["true"])
     VAR5 = EnviType.bool(is_ok=["true", "True"])
Beispiel #15
0
 class EnviBridge(EnviManager):
     VAR = EnviType.string(required=False, default="test")
Beispiel #16
0
 class EnviBridge(EnviManager):
     VAR = EnviType.bool()
Beispiel #17
0
 class EnviBridgeInheriting(EnviBridge):
     __configuration__ = {
         "VAR1": EnviType.bool(),
         "VAR2": EnviType.bool(),
     }
Beispiel #18
0
 class EnviBridge(EnviManager):
     VAR = EnviType.generic(cast=json.loads)
Beispiel #19
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.bool(),
     }
Beispiel #20
0
 class EnviBridge(EnviManager):
     VAR = EnviType.integer(validate=lower_than_10)