Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.11 /
dist-packages /
jinja2 /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-04-08 16:57
__init__.py
1.88
KB
-rw-r--r--
2025-04-08 16:57
_identifier.py
1.91
KB
-rw-r--r--
2025-04-08 16:57
async_utils.py
2.77
KB
-rw-r--r--
2025-04-08 16:57
bccache.py
13.73
KB
-rw-r--r--
2025-04-08 16:57
compiler.py
72.39
KB
-rw-r--r--
2025-04-08 16:57
constants.py
1.4
KB
-rw-r--r--
2025-04-08 16:57
debug.py
6.15
KB
-rw-r--r--
2025-04-08 16:57
defaults.py
1.24
KB
-rw-r--r--
2025-04-08 16:57
environment.py
60.07
KB
-rw-r--r--
2025-04-08 16:57
exceptions.py
4.95
KB
-rw-r--r--
2025-04-08 16:57
ext.py
31.13
KB
-rw-r--r--
2025-04-08 16:57
filters.py
53.92
KB
-rw-r--r--
2025-04-08 16:57
idtracking.py
10.31
KB
-rw-r--r--
2025-04-08 16:57
lexer.py
29.09
KB
-rw-r--r--
2025-04-08 16:57
loaders.py
23.49
KB
-rw-r--r--
2025-04-08 16:57
meta.py
4.29
KB
-rw-r--r--
2025-04-08 16:57
nativetypes.py
4.11
KB
-rw-r--r--
2025-04-08 16:57
nodes.py
33.77
KB
-rw-r--r--
2025-04-08 16:57
optimizer.py
1.61
KB
-rw-r--r--
2025-04-08 16:57
parser.py
39.44
KB
-rw-r--r--
2025-04-08 16:57
py.typed
0
B
-rw-r--r--
2025-04-08 16:57
runtime.py
33.45
KB
-rw-r--r--
2025-04-08 16:57
sandbox.py
14.66
KB
-rw-r--r--
2025-04-08 16:57
tests.py
5.79
KB
-rw-r--r--
2025-04-08 16:57
utils.py
23.56
KB
-rw-r--r--
2025-04-08 16:57
visitor.py
3.47
KB
-rw-r--r--
2025-04-08 16:57
Save
Rename
import inspect import typing as t from functools import WRAPPER_ASSIGNMENTS from functools import wraps from .utils import _PassArg from .utils import pass_eval_context if t.TYPE_CHECKING: import typing_extensions as te V = t.TypeVar("V") def async_variant(normal_func): # type: ignore def decorator(async_func): # type: ignore pass_arg = _PassArg.from_obj(normal_func) need_eval_context = pass_arg is None if pass_arg is _PassArg.environment: def is_async(args: t.Any) -> bool: return t.cast(bool, args[0].is_async) else: def is_async(args: t.Any) -> bool: return t.cast(bool, args[0].environment.is_async) # Take the doc and annotations from the sync function, but the # name from the async function. Pallets-Sphinx-Themes # build_function_directive expects __wrapped__ to point to the # sync function. async_func_attrs = ("__module__", "__name__", "__qualname__") normal_func_attrs = tuple(set(WRAPPER_ASSIGNMENTS).difference(async_func_attrs)) @wraps(normal_func, assigned=normal_func_attrs) @wraps(async_func, assigned=async_func_attrs, updated=()) def wrapper(*args, **kwargs): # type: ignore b = is_async(args) if need_eval_context: args = args[1:] if b: return async_func(*args, **kwargs) return normal_func(*args, **kwargs) if need_eval_context: wrapper = pass_eval_context(wrapper) wrapper.jinja_async_variant = True # type: ignore[attr-defined] return wrapper return decorator _common_primitives = {int, float, bool, str, list, dict, tuple, type(None)} async def auto_await(value: t.Union[t.Awaitable["V"], "V"]) -> "V": # Avoid a costly call to isawaitable if type(value) in _common_primitives: return t.cast("V", value) if inspect.isawaitable(value): return await t.cast("t.Awaitable[V]", value) return value class _IteratorToAsyncIterator(t.Generic[V]): def __init__(self, iterator: "t.Iterator[V]"): self._iterator = iterator def __aiter__(self) -> "te.Self": return self async def __anext__(self) -> V: try: return next(self._iterator) except StopIteration as e: raise StopAsyncIteration(e.value) from e def auto_aiter( iterable: "t.Union[t.AsyncIterable[V], t.Iterable[V]]", ) -> "t.AsyncIterator[V]": if hasattr(iterable, "__aiter__"): return iterable.__aiter__() else: return _IteratorToAsyncIterator(iter(iterable)) async def auto_to_list( value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]", ) -> t.List["V"]: return [x async for x in auto_aiter(value)]