Node.js addon that embeds Python using N-API and Python C API, allowing direct in-process execution of Python code without spawning child processes. Version 1.11.1 ships TypeScript types and supports Python 3.x. Unlike child_process or socket-based approaches, it keeps data in shared memory and avoids IPC overhead, making it suitable for rapid ML/DL model inference or small NumPy operations. Release cadence is moderate; requires node-gyp for native compilation. Better than python-shell for latency-sensitive scenarios but limited to Python 3 and may need platform-specific build setup.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM import since v1.11.0; CommonJS still works but prefer ESM for type safety.
Only exported as named type; cannot instantiate directly. Use interpreter singleton.
TypeScript users should import the Interpreter type to type-check callbacks or custom wrappers.
Shows async/sync calling, class instantiation, and memory management with node-calls-python.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.