Skip to main content

A minimal, secure javascript runtime for python

Project description

belgie

A minimal, secure JavaScript runtime for Python.

Package dependencies

Declare npm and JSR packages in pyproject.toml under [belgie.dependencies]. Top-level entries belong to the default group. Additional groups use nested tables:

[belgie.dependencies]
react = "^19"
std_path = "jsr:@std/path@^1"

[belgie.dependencies.dev]
"@types/react" = "^19"

[belgie.dependencies.test]
vitest = "^1"

Each key is an import alias. Values are either a version requirement (for npm packages) or a full npm: / jsr: specifier.

Locking and installing

Use belgie.dependencies.lock() or install() to resolve packages and write deno.lock. By default, only the default group is included. Pass groups to select one or more groups:

from belgie.dependencies import lock

lock()  # default group only
lock(groups=["default", "dev"])  # default and dev groups
lock(groups=["dev"])  # dev group only

PackageInstallResult.groups reports how many dependencies were resolved per group.

Async helpers (alock, ainstall, aupdate) accept the same arguments.

Runtime and tasks

When running JavaScript through Runtime or [belgie.scripts] tasks, belgie loads dependencies from all groups so dev-only tooling remains available at runtime.

Notes

  • Duplicate import aliases are not allowed across included groups.
  • Top-level string entries under [belgie.dependencies] map to the default group. A nested table whose key is literally default is treated as a separate named group.
  • The legacy [belgie.dev-dependencies] table is not supported; use [belgie.dependencies.dev] instead.

Project details


Download files

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

Source Distribution

belgie-0.21.0.tar.gz (120.4 kB view details)

Uploaded Source

Built Distributions

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

belgie-0.21.0-cp312-abi3-win_amd64.whl (32.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

belgie-0.21.0-cp312-abi3-manylinux_2_28_x86_64.whl (36.6 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

belgie-0.21.0-cp312-abi3-manylinux_2_28_aarch64.whl (36.6 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

belgie-0.21.0-cp312-abi3-macosx_11_0_arm64.whl (32.5 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

belgie-0.21.0-cp312-abi3-macosx_10_12_x86_64.whl (33.8 MB view details)

Uploaded CPython 3.12+macOS 10.12+ x86-64

File details

Details for the file belgie-0.21.0.tar.gz.

File metadata

  • Download URL: belgie-0.21.0.tar.gz
  • Upload date:
  • Size: 120.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.21.0.tar.gz
Algorithm Hash digest
SHA256 669345a3129c443c6746fbd4471e22e560926f7b812047dac28997d89a0fba45
MD5 13dc350b06827fb49124916d74b48390
BLAKE2b-256 691d9113773c7967de5e27d3301c3c43e25fb96e86f84c8c14abf21a7b562656

See more details on using hashes here.

File details

Details for the file belgie-0.21.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: belgie-0.21.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 32.7 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.21.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d69cc64e8a5b32fb935490c418fda681eda64b9838ca0b7783fa7460c4ae7545
MD5 b3088ea20691f1dbf78744fbcb261f2f
BLAKE2b-256 4b31df3c3b579108eaadadfecadabf6d87e662667f770f5d275d6695e71e90f2

See more details on using hashes here.

File details

Details for the file belgie-0.21.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: belgie-0.21.0-cp312-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 36.6 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.21.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8eb4f412a8630a9e439de114dbf13133d9d6b1dbf1fe36aafbc6deb111713b9f
MD5 69fe18b33e61957bd6d561d809575758
BLAKE2b-256 e6c18aa2083fe0e9023014388d13d7c803b58ed8ede2b0725c5fb66fe9bea3fc

See more details on using hashes here.

File details

Details for the file belgie-0.21.0-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: belgie-0.21.0-cp312-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 36.6 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.21.0-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 917e0b90b5fe465f31e70ec8d02e4b27cf98628f5fd966fe383c3d9506fe97c2
MD5 99b5440e06af72dceee8aa13d5769f2c
BLAKE2b-256 7667b33133746a182868a33ea385ac84defcdd80f5b9a86ac1194c824170b21f

See more details on using hashes here.

File details

Details for the file belgie-0.21.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: belgie-0.21.0-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 32.5 MB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.21.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa71a91db20964ed1925f4e59ffc50eceb2baf36a84e252b771659fd65292364
MD5 4402eab4506a40eb32650830529cc5d6
BLAKE2b-256 f1f1b5177c8d6a82b19e8244da42329ce4315a36e563dfeb62745f28e864177e

See more details on using hashes here.

File details

Details for the file belgie-0.21.0-cp312-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: belgie-0.21.0-cp312-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 33.8 MB
  • Tags: CPython 3.12+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.21.0-cp312-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 83e1130a1eea210101272572e7e2b37019e41db264b684058817ba961b26ad83
MD5 4903d6bd5a8415c142958b3828ed0520
BLAKE2b-256 d41faee7d15a0c15e46e1c21b81846d5f1534c4a62e48b4ffe3e1581a1647260

See more details on using hashes here.

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