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

Uploaded Python 3Windows x86-64

just_bash_bundled_runtime-22.23.0-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.23.0-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.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.23.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 232d25f70a3bf4b81713df8d0e6efeab48e19cc8464c2d7f951ab815ae9d78c1
MD5 3e2e66bbe7ab0331584bee64c4d41570
BLAKE2b-256 86625c5e762c28fb213bc1b399a24de0181605813d054f003f92cdfb1de85207

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.23.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b2590f5fbfd34c65389308bec0118ff029adbc94d1220a12055439e69acc4ed8
MD5 4f3ebc5bfecb1c520aa885dbc5433cdf
BLAKE2b-256 95206eae3aba650d87f2d4ce40f25960ac293a3a5c90f2d323327385e5f448f2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.23.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c351718a219b1e668ae6b658f18f35dfda794a7fe2513cf93f050595f5d4aeb0
MD5 17444ef8bcd2b8c7f0d4e251dd6b239d
BLAKE2b-256 67e698f3bef5ec960692ba46441ef3b51d79af7b4ce79b10672ee159ee894693

See more details on using hashes here.

Provenance

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