OXIESEC PANEL
- Current Dir:
/
/
snap
/
core24
/
888
/
usr
/
lib
/
python3
/
dist-packages
/
jinja2
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📄
__init__.py
1.88 KB
04/28/2022 05:20:15 PM
rw-r--r--
📁
__pycache__
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📄
_identifier.py
1.91 KB
03/24/2022 02:16:48 PM
rw-r--r--
📄
async_utils.py
2.41 KB
03/24/2022 02:16:48 PM
rw-r--r--
📄
bccache.py
13.73 KB
04/28/2022 02:08:26 PM
rw-r--r--
📄
compiler.py
70.83 KB
03/10/2025 04:56:35 PM
rw-r--r--
📄
constants.py
1.4 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
debug.py
6.15 KB
03/24/2022 02:16:48 PM
rw-r--r--
📄
defaults.py
1.24 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
environment.py
59.91 KB
04/25/2022 07:41:10 PM
rw-r--r--
📄
exceptions.py
4.95 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
ext.py
30.76 KB
03/24/2022 02:16:48 PM
rw-r--r--
📄
filters.py
53.34 KB
03/10/2025 04:56:35 PM
rw-r--r--
📄
idtracking.py
10.45 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
lexer.py
29.09 KB
03/10/2025 04:56:35 PM
rw-r--r--
📄
loaders.py
22.66 KB
04/28/2022 04:37:28 PM
rw-r--r--
📄
meta.py
4.29 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
nativetypes.py
4.13 KB
03/24/2022 02:16:48 PM
rw-r--r--
📄
nodes.py
33.81 KB
03/10/2025 04:56:35 PM
rw-r--r--
📄
optimizer.py
1.61 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
parser.py
38.67 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
py.typed
0 bytes
03/11/2022 10:53:03 PM
rw-r--r--
📄
runtime.py
32.69 KB
03/24/2022 02:16:48 PM
rw-r--r--
📄
sandbox.py
14.68 KB
03/10/2025 04:56:35 PM
rw-r--r--
📄
tests.py
5.77 KB
03/11/2022 10:53:03 PM
rw-r--r--
📄
utils.py
23.47 KB
03/10/2025 04:56:35 PM
rw-r--r--
📄
visitor.py
3.48 KB
04/25/2022 07:41:10 PM
rw-r--r--
Editing: defaults.py
Close
import typing as t from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401 from .tests import TESTS as DEFAULT_TESTS # noqa: F401 from .utils import Cycler from .utils import generate_lorem_ipsum from .utils import Joiner from .utils import Namespace if t.TYPE_CHECKING: import typing_extensions as te # defaults for the parser / lexer BLOCK_START_STRING = "{%" BLOCK_END_STRING = "%}" VARIABLE_START_STRING = "{{" VARIABLE_END_STRING = "}}" COMMENT_START_STRING = "{#" COMMENT_END_STRING = "#}" LINE_STATEMENT_PREFIX: t.Optional[str] = None LINE_COMMENT_PREFIX: t.Optional[str] = None TRIM_BLOCKS = False LSTRIP_BLOCKS = False NEWLINE_SEQUENCE: "te.Literal['\\n', '\\r\\n', '\\r']" = "\n" KEEP_TRAILING_NEWLINE = False # default filters, tests and namespace DEFAULT_NAMESPACE = { "range": range, "dict": dict, "lipsum": generate_lorem_ipsum, "cycler": Cycler, "joiner": Joiner, "namespace": Namespace, } # default policies DEFAULT_POLICIES: t.Dict[str, t.Any] = { "compiler.ascii_str": True, "urlize.rel": "noopener", "urlize.target": None, "urlize.extra_schemes": None, "truncate.leeway": 5, "json.dumps_function": None, "json.dumps_kwargs": {"sort_keys": True}, "ext.i18n.trimmed": False, }