OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
tomlkit
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
1.12 KB
12/18/2024 10:23:15 AM
rw-r--r--
📁
__pycache__
-
02/07/2025 10:01:36 PM
rwxr-xr-x
📄
_compat.py
513 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
_utils.py
3.93 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
api.py
6.9 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
container.py
27.53 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
exceptions.py
5.36 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
items.py
50.48 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
parser.py
36.95 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
py.typed
0 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
source.py
4.71 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
toml_char.py
1.26 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
toml_document.py
110 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
toml_file.py
1.56 KB
12/18/2024 10:23:15 AM
rw-r--r--
Editing: toml_char.py
Close
import string class TOMLChar(str): def __init__(self, c): super().__init__() if len(self) > 1: raise ValueError("A TOML character must be of length 1") BARE = string.ascii_letters + string.digits + "-_" KV = "= \t" NUMBER = string.digits + "+-_.e" SPACES = " \t" NL = "\n\r" WS = SPACES + NL def is_bare_key_char(self) -> bool: """ Whether the character is a valid bare key name or not. """ return self in self.BARE def is_kv_sep(self) -> bool: """ Whether the character is a valid key/value separator or not. """ return self in self.KV def is_int_float_char(self) -> bool: """ Whether the character if a valid integer or float value character or not. """ return self in self.NUMBER def is_ws(self) -> bool: """ Whether the character is a whitespace character or not. """ return self in self.WS def is_nl(self) -> bool: """ Whether the character is a new line character or not. """ return self in self.NL def is_spaces(self) -> bool: """ Whether the character is a space or not """ return self in self.SPACES