Sean Lynch
6a88434dae
Fix decorated classes
...
Also add defaults to SrlNumExpr
2023-10-22 18:35:20 -04:00
Sean Lynch
074e59391b
Make optional actually work
2023-10-16 21:04:01 -04:00
Sean Lynch
dfc34eb304
Fix STRING
...
Added multiline and set default settings for strings.
2023-10-16 20:59:24 -04:00
Sean Lynch
5ed48cfa02
Node decorator
2023-10-16 20:48:23 -04:00
Sean Lynch
ed442b59df
Latest changes
2023-10-02 19:33:55 -04:00
Sean Lynch
3d6b2437d5
Mutate the AST and compile instead
...
As long as we only let nodes through that we believe to be safe, it
should be fine to let Python handle the execution. The main unsafe
piece of code is attribute lookup.
Right now this allows access to str.format. Need to fix that.
2023-09-30 18:26:45 -04:00
Sean Lynch
2514e340ef
Last commit before attempting compiler
2023-09-30 17:19:56 -04:00
Sean Lynch
6082d2164e
Implement a safe(r) string formatter
2023-09-30 15:02:44 -04:00
Sean Lynch
4df3c3e925
Add tests, improve implementation
...
Dramatically improve the readability of the implementation by not
trying to use the visitor from ast.
2023-09-30 13:16:35 -04:00
Sean Lynch
29698bb6db
Properly handle slices missing start or end
2023-09-29 17:51:17 -04:00
Sean Lynch
8bb4dd66c1
Initial implementation of Python expression evaluator
...
I haven't tested it particularly heavily yet. Need to find or write a
Python expression conformance suite.
2023-09-29 17:45:29 -04:00
Sean Lynch
3caefa641e
Add SrlFilterImageList
2023-09-28 19:07:42 -04:00
Sean Lynch
5863312111
Convince Comfy not to strip curly braces
...
Surprise! There go your curly braces!
2023-09-28 17:15:25 -04:00
Sean Lynch
d2b2fd1062
Add warnings to the docs about arbitrary code execution.
2023-09-28 12:50:08 -04:00
Sean Lynch
34aae87d8f
Change license to AGPLv3.
2023-09-28 12:26:42 -04:00
Sean Lynch
5140577a29
Fix formatting of example code
2023-09-28 12:06:21 -04:00
Sean Lynch
7235a8e9d9
Add eval and format nodes
2023-09-28 12:00:27 -04:00
Sean Lynch
ce67b5c4fb
Initial commit
2023-09-25 22:11:10 -04:00