nodejs-wheel


Namenodejs-wheel JSON
Version 22.12.0 PyPI version JSON
download
home_pageNone
Summaryunoffical Node.js package
upload_time2024-12-06 23:10:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseCopyright 2023 Jinzhe Zeng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords nodejs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Unoffical Node.js wheels

[![Pypi version](https://img.shields.io/pypi/v/nodejs-wheel?label=nodejs-wheel&logo=pypi)](https://pypi.org/project/nodejs-wheel/)
[![Pypi downloads](https://img.shields.io/pypi/dm/nodejs-wheel)](https://pypi.org/project/nodejs-wheel/)
[![Pypi downloads](https://img.shields.io/pypi/dw/nodejs-wheel)](https://pypi.org/project/nodejs-wheel/)
[![Pypi downloads](https://img.shields.io/pypi/dd/nodejs-wheel)](https://pypi.org/project/nodejs-wheel/)

`nodejs-wheel` is an unofficial repository to distribute Node.js prebuilt wheels through PyPI using

```sh
pip install nodejs-wheel
```

*New in v20.13.0*: If you don't need command line interface (CLI), install only `nodejs-wheel-binaries`, which is a direct dependency of `nodejs-wheel`.

[![Pypi version](https://img.shields.io/pypi/v/nodejs-wheel-binaries?label=nodejs-wheel-binaries&logo=pypi)](https://pypi.org/project/nodejs-wheel-binaries/)
[![Pypi downloads](https://img.shields.io/pypi/dm/nodejs-wheel-binaries)](https://pypi.org/project/nodejs-wheel-binaries/)
[![Pypi downloads](https://img.shields.io/pypi/dw/nodejs-wheel-binaries)](https://pypi.org/project/nodejs-wheel-binaries/)
[![Pypi downloads](https://img.shields.io/pypi/dd/nodejs-wheel-binaries)](https://pypi.org/project/nodejs-wheel-binaries/)

```sh
pip install nodejs-wheel-binaries
```

The package requires Python 3.7 and above.

The project is powered by [scikit-build-core](https://github.com/scikit-build/scikit-build-core) and [cibuildwheel](https://github.com/pypa/cibuildwheel).

## Available Builds

| OS      | Arch    | Bit | Conditions     | New in      |
| ------- | ------- | --- | -------------- | ----------- |
| Linux   | x86_64  | 64  | glibc >= 2.17  | v18.18.0    |
| Linux   | x86_64  | 64  | musl >= 1.2    | v20.14.0    |
| Linux   | aarch64 | 64  | glibc >= 2.17  | v20.13.0    |
| macOS   | x86_64  | 64  | >= macOS-11    | v18.18.0    |
| macOS   | arm64   | 64  | >= macOS-11    | v20.11.1    |
| Windows | amd64   | 64  |                | v18.18.0    |
| Windows | arm64   | 64  |                | v22.12.0    |

## Usage

### Command line

Only available in the `nodejs-wheel` package.

```sh
node -h
npm -h
npx -h
```

### Run library module as a script

*New in v20.13.0*.

Only support `node`.

```sh
python -m nodejs_wheel --version
```

### Python API

*New in v20.13.0*.

```py
from nodejs_wheel import (
    node,
    npm,
    npx,
)

return_code0 = node(["--version"])
return_code1 = npm(["--version"])
return_code2 = npx(["--version"])
```

*New in v20.13.1*: pass `return_completed_process=True` to get `subprocess.CompletedProcess` instead of `int`.

```py
completed_process0 = node(["--version"], return_completed_process=True)
completed_process1 = npm(["--version"], return_completed_process=True)
completed_process2 = npx(["--version"], return_completed_process=True)
```

## License

`nodejs-wheel` distributed under the same MIT [license](LICENSE) as [Node.js](https://github.com/nodejs/node).

## Other projects

The project is inspired by many other similiar projects:

- [samwillis/nodejs-pypi](https://github.com/samwillis/nodejs-pypi): The package redistribute the official Node.js binaraies to PyPI. However, the offical binary for Nodejs 18 requires GLIBC 2.28, making it unsupported in [manylinux2014](https://github.com/pypa/manylinux) images. Besides, the wheel tag is wrong.
- [sbwml/node-latest-centos](https://github.com/sbwml/node-latest-centos): Use GitHub Actions to build Node.js in CentOS 7, but is not related to Python or PyPI.
- [scikit-build/cmake-python-distributions](https://github.com/scikit-build/cmake-python-distributions): Use cibuildwheel and scikit-build to build CMake and distribute CMake in PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nodejs-wheel",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "nodejs",
    "author": null,
    "author_email": "Jinzhe Zeng <jinzhe.zeng@rutgers.edu>",
    "download_url": "https://files.pythonhosted.org/packages/ec/52/b2e6c711d1265c9c15c9fd35f08566594f8f6e4193c8dfed672359112f55/nodejs_wheel-22.12.0.tar.gz",
    "platform": null,
    "description": "# Unoffical Node.js wheels\n\n[![Pypi version](https://img.shields.io/pypi/v/nodejs-wheel?label=nodejs-wheel&logo=pypi)](https://pypi.org/project/nodejs-wheel/)\n[![Pypi downloads](https://img.shields.io/pypi/dm/nodejs-wheel)](https://pypi.org/project/nodejs-wheel/)\n[![Pypi downloads](https://img.shields.io/pypi/dw/nodejs-wheel)](https://pypi.org/project/nodejs-wheel/)\n[![Pypi downloads](https://img.shields.io/pypi/dd/nodejs-wheel)](https://pypi.org/project/nodejs-wheel/)\n\n`nodejs-wheel` is an unofficial repository to distribute Node.js prebuilt wheels through PyPI using\n\n```sh\npip install nodejs-wheel\n```\n\n*New in v20.13.0*: If you don't need command line interface (CLI), install only `nodejs-wheel-binaries`, which is a direct dependency of `nodejs-wheel`.\n\n[![Pypi version](https://img.shields.io/pypi/v/nodejs-wheel-binaries?label=nodejs-wheel-binaries&logo=pypi)](https://pypi.org/project/nodejs-wheel-binaries/)\n[![Pypi downloads](https://img.shields.io/pypi/dm/nodejs-wheel-binaries)](https://pypi.org/project/nodejs-wheel-binaries/)\n[![Pypi downloads](https://img.shields.io/pypi/dw/nodejs-wheel-binaries)](https://pypi.org/project/nodejs-wheel-binaries/)\n[![Pypi downloads](https://img.shields.io/pypi/dd/nodejs-wheel-binaries)](https://pypi.org/project/nodejs-wheel-binaries/)\n\n```sh\npip install nodejs-wheel-binaries\n```\n\nThe package requires Python 3.7 and above.\n\nThe project is powered by [scikit-build-core](https://github.com/scikit-build/scikit-build-core) and [cibuildwheel](https://github.com/pypa/cibuildwheel).\n\n## Available Builds\n\n| OS      | Arch    | Bit | Conditions     | New in      |\n| ------- | ------- | --- | -------------- | ----------- |\n| Linux   | x86_64  | 64  | glibc >= 2.17  | v18.18.0    |\n| Linux   | x86_64  | 64  | musl >= 1.2    | v20.14.0    |\n| Linux   | aarch64 | 64  | glibc >= 2.17  | v20.13.0    |\n| macOS   | x86_64  | 64  | >= macOS-11    | v18.18.0    |\n| macOS   | arm64   | 64  | >= macOS-11    | v20.11.1    |\n| Windows | amd64   | 64  |                | v18.18.0    |\n| Windows | arm64   | 64  |                | v22.12.0    |\n\n## Usage\n\n### Command line\n\nOnly available in the `nodejs-wheel` package.\n\n```sh\nnode -h\nnpm -h\nnpx -h\n```\n\n### Run library module as a script\n\n*New in v20.13.0*.\n\nOnly support `node`.\n\n```sh\npython -m nodejs_wheel --version\n```\n\n### Python API\n\n*New in v20.13.0*.\n\n```py\nfrom nodejs_wheel import (\n    node,\n    npm,\n    npx,\n)\n\nreturn_code0 = node([\"--version\"])\nreturn_code1 = npm([\"--version\"])\nreturn_code2 = npx([\"--version\"])\n```\n\n*New in v20.13.1*: pass `return_completed_process=True` to get `subprocess.CompletedProcess` instead of `int`.\n\n```py\ncompleted_process0 = node([\"--version\"], return_completed_process=True)\ncompleted_process1 = npm([\"--version\"], return_completed_process=True)\ncompleted_process2 = npx([\"--version\"], return_completed_process=True)\n```\n\n## License\n\n`nodejs-wheel` distributed under the same MIT [license](LICENSE) as [Node.js](https://github.com/nodejs/node).\n\n## Other projects\n\nThe project is inspired by many other similiar projects:\n\n- [samwillis/nodejs-pypi](https://github.com/samwillis/nodejs-pypi): The package redistribute the official Node.js binaraies to PyPI. However, the offical binary for Nodejs 18 requires GLIBC 2.28, making it unsupported in [manylinux2014](https://github.com/pypa/manylinux) images. Besides, the wheel tag is wrong.\n- [sbwml/node-latest-centos](https://github.com/sbwml/node-latest-centos): Use GitHub Actions to build Node.js in CentOS 7, but is not related to Python or PyPI.\n- [scikit-build/cmake-python-distributions](https://github.com/scikit-build/cmake-python-distributions): Use cibuildwheel and scikit-build to build CMake and distribute CMake in PyPI.\n",
    "bugtrack_url": null,
    "license": "Copyright 2023 Jinzhe Zeng  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "unoffical Node.js package",
    "version": "22.12.0",
    "project_urls": {
        "repository": "https://github.com/njzjz/nodejs-wheel"
    },
    "split_keywords": [
        "nodejs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd6699e187ae19fd7fbf879bef85bbab1a6c63f6c88536ac37fc9238f8831947",
                "md5": "10962960910b94e3dc06713ebdd79ece",
                "sha256": "6ec6c87be5de8a12feb82f3269a63d25922781b4accbb8d0fbb4a2a6deb117dd"
            },
            "downloads": -1,
            "filename": "nodejs_wheel-22.12.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "10962960910b94e3dc06713ebdd79ece",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3913,
            "upload_time": "2024-12-06T23:10:11",
            "upload_time_iso_8601": "2024-12-06T23:10:11.503933Z",
            "url": "https://files.pythonhosted.org/packages/cd/66/99e187ae19fd7fbf879bef85bbab1a6c63f6c88536ac37fc9238f8831947/nodejs_wheel-22.12.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec52b2e6c711d1265c9c15c9fd35f08566594f8f6e4193c8dfed672359112f55",
                "md5": "4d3321ea577eb2cb9d36a2a65223df96",
                "sha256": "88bfd8a59975eeca426f357ddbf88c7df26b6bdc9bbb37dfb3acb63b4f5e8426"
            },
            "downloads": -1,
            "filename": "nodejs_wheel-22.12.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4d3321ea577eb2cb9d36a2a65223df96",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2903,
            "upload_time": "2024-12-06T23:10:47",
            "upload_time_iso_8601": "2024-12-06T23:10:47.205609Z",
            "url": "https://files.pythonhosted.org/packages/ec/52/b2e6c711d1265c9c15c9fd35f08566594f8f6e4193c8dfed672359112f55/nodejs_wheel-22.12.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-06 23:10:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "njzjz",
    "github_project": "nodejs-wheel",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nodejs-wheel"
}
        
Elapsed time: 0.89661s