What is Nostr?
Simon Willison /
npub13v9…w5eu
2023-11-23 19:08:38

Simon Willison on Nostr: Here's a surprisingly difficult question: I'm looking for an implementation of a ...

Here's a surprisingly difficult question: I'm looking for an implementation of a simple expression language in Python that can do bits of arithmetic and basic string operations (eg concatenetion) against some variables I pass to it... but is safe against untrusted input - and operates with limits on CPU and memory usage

I'm not looking for a full sandboxed Python (though that would be nice) - I just want to be able to do "a + b * c" with untrusted input

Any good options I might have missed?
Author Public Key
npub13v97j0kknscwnf5pt87nsn7cxzxwfwl3dsu7ss8qsq7ukmqgwg8q84w5eu