I’d like to create a python “front-end” Domain Specific Language4 (DSL) which calls a number of predicates in a backend running on a server via pengine.
I’d like to ensure that the python user can only call exactly those predicates I provide as API and nothing else – in particular no listing type of predicates to secure the backend code.
Can I do this via a) packaging of the “bridge” code in a closed, importable module in python, and via checking each incoming pengine call that it only includes those API predicates.
Can this work? Any things I overlooked ?