interpretthis 0.3.0

Sandboxed Python AST interpreter for untrusted and LLM-generated code
Documentation
1
2
3
4
5
6
7
8
# Pins: PEP 585 subscripted generics in annotations (`list[int]`,
# `dict[str, int]`). The annotation is informational at runtime;
# the value still must be a regular list/dict.
items: list[int] = [1, 2, 3]
print(items)

mapping: dict[str, int] = {'a': 1}
print(mapping)