Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

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?

You must be logged in to vote

Replies: 1 comment

Comment options

I'm too interested to be able to specify which class should be "exported" or which methods, properties, ... . Is it even possible?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.