Example #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"]),
     }
Example #2
0
    class EnviBridge(EnviManager):
        VAR = EnviType.bool()

        def callable(self):
            return "callable"

        @classmethod
        def callable2(cls):
            return "callable2"
Example #3
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.string(required=False, default="test"),
     }
Example #4
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.string(required=True),
     }
Example #5
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.generic(cast=json.loads),
     }
Example #6
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.integer(validate=lower_than_10),
     }
Example #7
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.generic(lambda x: x.upper()),
     }
Example #8
0
 class EnviBridge(EnviManager):
     VAR = EnviType.string(required=True)
Example #9
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR1": EnviType.string(),
     }
Example #10
0
 class EnviBridge(EnviManager):
     VAR = EnviType.float()
Example #11
0
 class EnviBridge(EnviManager):
     VAR1 = EnviType.string()
Example #12
0
 class EnviBridgeInheriting(EnviBridge):
     VAR1 = EnviType.bool()
     VAR2 = EnviType.bool()
Example #13
0
 class EnviBridge(EnviManager):
     VAR = EnviType.integer()
Example #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"])
Example #15
0
 class EnviBridge(EnviManager):
     VAR = EnviType.string(required=False, default="test")
Example #16
0
 class EnviBridge(EnviManager):
     VAR = EnviType.bool()
Example #17
0
 class EnviBridgeInheriting(EnviBridge):
     __configuration__ = {
         "VAR1": EnviType.bool(),
         "VAR2": EnviType.bool(),
     }
Example #18
0
 class EnviBridge(EnviManager):
     VAR = EnviType.generic(cast=json.loads)
Example #19
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.bool(),
     }
Example #20
0
 class EnviBridge(EnviManager):
     VAR = EnviType.integer(validate=lower_than_10)