@polyplug/loaders-python
v0.1.3
Published
polyplug Python bundle loader for JavaScript/TypeScript hosts (Deno runtime required; Node FFI backend planned)
Maintainers
Readme
@polyplug/loaders-python
polyplug Python bundle loader for JavaScript/TypeScript hosts.
Runtime requirement: Deno. This loader opens its native library through Deno's FFI (
Deno.dlopen). It installs and imports under Node.js but throws at runtime there. A Node FFI backend is planned. Until then, use Deno.
Usage
import { Runtime } from "@polyplug/host";
import { registerPythonLoader } from "@polyplug/loaders-python";Requires @polyplug/host. The
loader native (libpolyplug_python) must be resolvable by the OS loader or via the
POLYPLUG_NATIVE_LIB environment variable.
