Pocok.Scripting.Python
0.2.0-alpha.7
Prefix Reserved
dotnet add package Pocok.Scripting.Python --version 0.2.0-alpha.7
NuGet\Install-Package Pocok.Scripting.Python -Version 0.2.0-alpha.7
<PackageReference Include="Pocok.Scripting.Python" Version="0.2.0-alpha.7" />
<PackageVersion Include="Pocok.Scripting.Python" Version="0.2.0-alpha.7" />
<PackageReference Include="Pocok.Scripting.Python" />
paket add Pocok.Scripting.Python --version 0.2.0-alpha.7
#r "nuget: Pocok.Scripting.Python, 0.2.0-alpha.7"
#:package Pocok.Scripting.Python@0.2.0-alpha.7
#addin nuget:?package=Pocok.Scripting.Python&version=0.2.0-alpha.7&prerelease
#tool nuget:?package=Pocok.Scripting.Python&version=0.2.0-alpha.7&prerelease
Pocok.Scripting.Python
Trusted-local CPython 3.14 adapter for the engine-neutral Pocok.Scripting runner. It starts a fresh external process with -I -S, a sanitized environment, bounded streams, AST validation, and kill-tree timeout/cancellation. It provides no Python.NET or CLR bridge.
var adapter = new PythonScriptEngineAdapter(new PythonScriptEngineOptions
{
PythonExecutable = pythonPath,
AllowedImports = ["math"]
});
var runner = new ScriptRunner(new ScriptEngineRegistry([adapter]));
The executable is resolved only from PythonScriptEngineOptions.PythonExecutable, then POCOK_PYTHON_EXECUTABLE, and must probe as CPython 3.14.x. Packaged consumers receive the private worker through buildTransitive. Repository-source deployments may set POCOK_PYTHON_WORKER_PATH explicitly.
Imports default to none. eval, exec, compile, dynamic import, dunder traversal, process/environment/filesystem/network access, and non-allowlisted imports are rejected before execution. Only bounded JSON-compatible values cross the process boundary.
Validation and process isolation are guardrails, not an operating-system sandbox. Do not enable this adapter for anonymous hostile workloads.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Pocok.Scripting (>= 0.2.0-alpha.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-alpha.7 | 47 | 7/22/2026 |