Title: Disable CLR (and related) imports & attempt to isolate the Python environment from the .NET world · Issue #2457 · pythonnet/pythonnet · GitHub
Open Graph Title: Disable CLR (and related) imports & attempt to isolate the Python environment from the .NET world · Issue #2457 · pythonnet/pythonnet
X Title: Disable CLR (and related) imports & attempt to isolate the Python environment from the .NET world · Issue #2457 · pythonnet/pythonnet
Description: Environment Pythonnet version: 3.0.4 Python version: 3.12.6 Operating System: Windows 11 (22631.4169) .NET Runtime: Core 8.0 Details This is not a bug report, but rather a request I am currently developing a project in C# and want to ach...
Open Graph Description: Environment Pythonnet version: 3.0.4 Python version: 3.12.6 Operating System: Windows 11 (22631.4169) .NET Runtime: Core 8.0 Details This is not a bug report, but rather a request I am currently de...
X Description: Environment Pythonnet version: 3.0.4 Python version: 3.12.6 Operating System: Windows 11 (22631.4169) .NET Runtime: Core 8.0 Details This is not a bug report, but rather a request I am currently de...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2457
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Disable CLR (and related) imports \u0026 attempt to isolate the Python environment from the .NET world","articleBody":"### Environment\r\n\r\n- Pythonnet version: 3.0.4\r\n- Python version: 3.12.6\r\n- Operating System: Windows 11 (22631.4169)\r\n- .NET Runtime: Core 8.0\r\n\r\n### Details\r\n\r\n- This is not a bug report, but rather a request\r\n- I am currently developing a project in C# and want to achieve Python integration, similar to what Lua proposes with its native C library\r\n- I want to be able to disable the CLR module as I do not want user code to access .NET classes from the Python environment\r\n- I want to only expose some classes and/or methods to the environment; opposite from the current behaviour which is to let every class be automatically exposed to the Python environment, and only specify those who are not exported to said environment\r\n- I am just testing out the library with the `ExecuteSimpleString` method, and I currently can do .NET imports from Python, which is what I want to prevent\r\n- Is there any way to achieve all of this?\r\n\r\nThanks!","author":{"url":"https://github.com/alexis-belmonte","@type":"Person","name":"alexis-belmonte"},"datePublished":"2024-09-19T20:04:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2457/pythonnet/issues/2457"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aab73f52-42e1-66ae-0e94-7cb0dbbaee6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3BC:1A18F2:6F764:9B77B:69776F2E |
| html-safe-nonce | 0b11f3e2eea1f1c7455f151ac79c53a777cfbc900e0a7cce9da74ce446644888 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0JDOjFBMThGMjo2Rjc2NDo5Qjc3Qjo2OTc3NkYyRSIsInZpc2l0b3JfaWQiOiI1ODI3MTM5MDgzMjQyNTMyNjU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba0e6b5222065b81c04ef7e6188555311ac116f169863f16e09c239e69f0a0ca |
| hovercard-subject-tag | issue:2537270975 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/2457/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c482bfd95182a51bf92318a4803ec42773e7fd52a7966f4bb99728eaf269f7f/pythonnet/pythonnet/issues/2457 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c482bfd95182a51bf92318a4803ec42773e7fd52a7966f4bb99728eaf269f7f/pythonnet/pythonnet/issues/2457 |
| og:image:alt | Environment Pythonnet version: 3.0.4 Python version: 3.12.6 Operating System: Windows 11 (22631.4169) .NET Runtime: Core 8.0 Details This is not a bug report, but rather a request I am currently de... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexis-belmonte |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9fea6af76c6e24ca5c5728a18d4220d768790d04abe1ba6aafa18526daff96e7 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6c4a3fa336c0d96309887d0be819777cadd37121 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width