You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to embed Python in an application using python.net. Ideally, I would like Python to run in a limited environment (I hesitate to use the term "sandbox") where some assemblies, classes and members are off-limits.
I have embedded other languages, and some provide callbacks that I can hook whenever an assembly, class or member is being mapped into the interpreter. The callback gives me the option of denying the mapping, so I can implement whatever logic I like to create blacklists, whitelists and pattern-based denials.
Is there anything in python.net that could be used to do something similar?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to embed Python in an application using python.net. Ideally, I would like Python to run in a limited environment (I hesitate to use the term "sandbox") where some assemblies, classes and members are off-limits.
I have embedded other languages, and some provide callbacks that I can hook whenever an assembly, class or member is being mapped into the interpreter. The callback gives me the option of denying the mapping, so I can implement whatever logic I like to create blacklists, whitelists and pattern-based denials.
Is there anything in python.net that could be used to do something similar?
Beta Was this translation helpful? Give feedback.
All reactions