Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Can I limit which C# assemblies, classes, methods and properties are available to Python?#2387

asthomas started this conversation inGeneral
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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@asthomas@Trigve

[8]ページ先頭

©2009-2025 Movatter.jp