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.22.3-py3-none-win_amd64.whl (37.6 MB view details)

Uploaded Python 3Windows x86-64

just_bash_bundled_runtime-22.22.3-py3-none-manylinux_2_28_x86_64.whl (60.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

just_bash_bundled_runtime-22.22.3-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.22.3-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.22.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e1f3ada276622c8e6c72b0f90999cf9bc7eea6d1c90ff3aae5c7d895f051b951
MD5 fbcd5f66944d88c70351b9acf87f5f27
BLAKE2b-256 a95972734c86f823d97cb6cd7e6a1483953ae4c16b3484567f62a72e36b90226

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_bash_bundled_runtime-22.22.3-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.22.3-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.22.3-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 10236b9e2659c5dff502f1824e76f2747a30332376c6fb088350579f61bcd5ee
MD5 21d53f4e530c47551dcc278370689ef3
BLAKE2b-256 cbcaa869fa43a4b154c861c6eecba5ba4dbb507a990e908dcd23651661ede718

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_bash_bundled_runtime-22.22.3-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.22.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.22.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b33af3ab3c2fa1dcbd3e1726883ef500aed5e62fd890d9c65fd22ea634b2a7a3
MD5 e0e5017af4053d9b54dcfbfe98acdaf8
BLAKE2b-256 20dc55762c1597f8279a2b8a37a7570f306593567d2cd77013f2bf8bb2a9984a

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_bash_bundled_runtime-22.22.3-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