logoalt Hacker News

ForHackernews12/09/20241 replyview on HN

Can you use Starlark inside Python? We have a rules engine where we'd like the rules themselves to be maintained outside the regular codebase, but we'd rather not invent a new DSL for them.


Replies

laurentlb12/09/2024

Yes, you can try these bindings:

- https://github.com/caketop/python-starlark-go

- https://github.com/inducer/starlark-pyo3

(I haven't tried them myself)