Skip to main content

First-party bundled Node.js runtime provider for just-py-bash

Project description

just-bash-bundled-runtime

PyPI Python Versions CI

just-bash-bundled-runtime is the first-party bundled Node.js runtime provider for just-py-bash.

Most users should install it indirectly via the main package extra:

uv add 'just-py-bash[node]'

That gives just-py-bash a bundled node binary to use when no system Node.js is available on PATH.

What it provides

  • a platform-specific wheel containing a vendored Node.js runtime
  • helper functions to locate the bundled executable from Python
  • runtime metadata including the bundled Node version, platform, archive URL, and SHA-256
  • runtime payloads built from official Node.js release archives and verified against upstream SHASUMS256.txt

Install

Requires Python 3.11+

Use case Command
Recommended: install through the main package extra uv add 'just-py-bash[node]'
Install the runtime package directly uv add just-bash-bundled-runtime
Install from a local checkout uv add ./just_bash_bundled_runtime

Install name: just-bash-bundled-runtime
Import name: just_bash_bundled_runtime

Quick start

import subprocess

from just_bash_bundled_runtime import get_node_command, get_runtime_metadata

metadata = get_runtime_metadata()
print(metadata["node_version"])
print(metadata["platform"])

completed = subprocess.run(
    [*get_node_command(), "--version"],
    check=True,
    capture_output=True,
    text=True,
)
print(completed.stdout.strip())

Public helpers

The package exports:

  • get_node_command()
  • get_node_executable()
  • get_runtime_metadata()
  • get_runtime_root()

How just-py-bash uses it

When the companion package is installed, just-py-bash resolves Node.js in this order:

  1. node_command= passed to Bash(...) or AsyncBash(...)
  2. JUST_BASH_NODE
  3. the bundled runtime from just-bash-bundled-runtime
  4. a system node on PATH

That means most consumers only need to install just-py-bash[node]; the main package handles the runtime discovery automatically.

Development

Populate the local runtime payload:

python just_bash_bundled_runtime/tools/vendor_runtime.py

Build a wheel from the repository root:

uv build just_bash_bundled_runtime --wheel --out-dir dist-node

Versioning

Package versioning for just-bash-bundled-runtime is intentionally independent from just-py-bash and tracks the bundled Node.js version.

See VERSIONING.md for the runtime package version policy and release tag semantics.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

just_bash_bundled_runtime-22.23.1-py3-none-win_amd64.whl (37.6 MB view details)

Uploaded Python 3Windows x86-64

just_bash_bundled_runtime-22.23.1-py3-none-manylinux_2_28_x86_64.whl (60.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

just_bash_bundled_runtime-22.23.1-py3-none-macosx_11_0_arm64.whl (53.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file just_bash_bundled_runtime-22.23.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.23.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 52dee2d33547ca9e49051f406f6272ea90eb57e5e266856d3396184630716c35
MD5 2fd43882fdc07b6a38e1171f89e6940c
BLAKE2b-256 a5dd6ed14ed413f54dea4e9d876c1a322b6e33549c8a3242d2a8bc96983a20ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_bash_bundled_runtime-22.23.1-py3-none-win_amd64.whl:

Publisher: bundled-runtime-release.yml on nathan-gage/just-py-bash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file just_bash_bundled_runtime-22.23.1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.23.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4787229fc95458e94ddf4e5e6edcb44f350c5767386690cac9dd0ac89244b431
MD5 9fe2aca02cb0479513def9967ded5ef4
BLAKE2b-256 097c9ff98fd205df9070bb11ac89dd57a52a7a92b1bf20fabf80adb2947ced07

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_bash_bundled_runtime-22.23.1-py3-none-manylinux_2_28_x86_64.whl:

Publisher: bundled-runtime-release.yml on nathan-gage/just-py-bash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file just_bash_bundled_runtime-22.23.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.23.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4830430fcddee43e692ad7bf44289e2e6250ef6a1e7c9db216dbf726ebcf2d24
MD5 0f5794b90354aad5fa3c2e9bd93790ae
BLAKE2b-256 303563d3cf0e30efd618a69e0171987fc785bee71b8d2c4d069eaf47e272aeb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_bash_bundled_runtime-22.23.1-py3-none-macosx_11_0_arm64.whl:

Publisher: bundled-runtime-release.yml on nathan-gage/just-py-bash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page