Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > setoptconf >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
source | Directory | - | - | |
__init__.py | File | 188 bytes | April 17 2025 13:10:58. | |
config.py | File | 2345 bytes | April 17 2025 13:10:58. | |
datatype.py | File | 3106 bytes | April 17 2025 13:10:58. | |
exception.py | File | 372 bytes | April 17 2025 13:10:58. | |
manager.py | File | 1122 bytes | April 17 2025 13:10:58. | |
setting.py | File | 1709 bytes | April 17 2025 13:10:58. | |
util.py | File | 241 bytes | April 17 2025 13:10:58. |
# pylint: disable=W0401,W0223 import re from .datatype import * from .exception import NamingError __all__ = ( "Setting", "StringSetting", "IntegerSetting", "FloatSetting", "BooleanSetting", "ListSetting", "ChoiceSetting", ) class Setting(DataType): RE_NAME = re.compile(r"^[a-z](?:[a-z0-9]|[_](?![_]))*[a-z0-9]$") def __init__(self, name, default=None, required=False): if Setting.RE_NAME.match(name): self.name = name else: raise NamingError(name) self._value = None self.default = self.sanitize(default) self.required = required self.established = False @property def value(self): return self._value @value.setter def value(self, value): self._value = self.sanitize(value) self.established = True def __str__(self): # pragma: no cover return unicode(self.name) def __repr__(self): # pragma: no cover return "<%s(%s=%s)>" % ( self.__class__.__name__, self.name, self.value if self.established else "", ) class StringSetting(Setting, String): pass class IntegerSetting(Setting, Integer): pass class FloatSetting(Setting, Float): pass class BooleanSetting(Setting, Boolean): pass class ListSetting(Setting, List): def __init__(self, name, subtype, **kwargs): List.__init__(self, subtype) Setting.__init__(self, name, **kwargs) class ChoiceSetting(Setting, Choice): def __init__(self, name, choices, subtype=None, **kwargs): Choice.__init__(self, choices, subtype=subtype) Setting.__init__(self, name, **kwargs)
SILENT KILLER Tool