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: github.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:781ebd62-6f81-7ef7-7ca3-6fbb0b12ee3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B130:3D0FFE:178D2AB:1F550D3:697812FC |
| html-safe-nonce | 67c296eefc6fc9af72f4f091179801ad2ac858f7cd02e0836ba169c06de974c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTMwOjNEMEZGRToxNzhEMkFCOjFGNTUwRDM6Njk3ODEyRkMiLCJ2aXNpdG9yX2lkIjoiMjIyMTI3NDI1NDUyMTQwNjIwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e0fab31e14c6ead2e1d1d8b064f6a3985810cfe83cb15411739b8c216944b698 |
| 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 | e71ed39771d00f42ce2fc9320895c8c608c164191e118eae487fc3bd0af6886d |
| 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 | 4919f24054c1e9bf76d7b543cb2ac018075b18ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width