logoalt Hacker News

ForHackernews • 12/09/2024 • 1 reply • view 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

laurentlb • 12/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)