Metadata-Version: 2.5
Name: node-edge
Version: 1.0.0
Summary: A tool to run Node code from Python
Project-URL: Homepage, https://github.com/ModelW/py-node-edge
Project-URL: Repository, https://github.com/ModelW/py-node-edge
Project-URL: Documentation, https://node-edge.rtfd.io
Author-email: Rémy Sanchez <remy.sanchez@hyperthese.net>
License: WTFPL
License-File: LICENSE
Keywords: binding,javascript,node
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.10
Provides-Extra: node
Requires-Dist: nodejs-wheel-binaries>=20; extra == 'node'
Description-Content-Type: text/markdown

# node-edge

![Unit Tests](https://github.com/ModelW/py-node-edge/actions/workflows/tests.yml/badge.svg)
![Documentation](https://readthedocs.org/projects/node-edge/badge/?version=latest)

This tool allows you to run Node code from Python, including dependency
management:

```python
from node_edge import NodeEngine

package = {
    "dependencies": {
        "axios": "^1.2.0",
    },
}


with NodeEngine(package) as ne:
    axios = ne.import_from("axios")
    print(axios.get("https://httpbin.org/robots.txt").data)
```

By default, node-edge uses the `node` and `npm` binaries found in your `PATH`.
If you don't have (or don't want) a system-wide Node installation, you can get a
Node runtime bundled as a Python wheel:

```bash
pip install node-edge[node]
```

## Documentation

[✨ **Documentation is there** ✨](https://node-edge.rtfd.io)
