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

Uploaded Python 3Windows x86-64

just_bash_bundled_runtime-22.22.2.post1-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.2.post1-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.2.post1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.22.2.post1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4101de5c7a07bf6ea7ef7336953e4170e9060daf026e87773952e551fd482e37
MD5 3095a2e6925d9ff700c5c0a9daa9087d
BLAKE2b-256 078d37f1182dc1d30d9e68549d73fce05bb4241a4abff1252845373045880db6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.22.2.post1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a69c9e86f69d560c2885b95a9883daf9a1cd2238afbbee6b0eb21739668946a6
MD5 99e122a0050c386731ab3b86e700b581
BLAKE2b-256 fa0e399b829d6114842292e83d88a25942d526df476fa60a2b1f9a0b0d0b2623

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for just_bash_bundled_runtime-22.22.2.post1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 086420ccb9c0ae3bc2c153da98f21dfbd4def9b69eaf4f665d5e90bc6facbc27
MD5 d9d683dac19c26f1ea1a17236b2cc40b
BLAKE2b-256 5f4e86be685f0be90fcda7bb62173d9b29460f7d52043f1d73b2e595abe1263e

See more details on using hashes here.

Provenance

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